import React from "react"; import { Meta } from "@storybook/react-vite"; import styled from "styled-components"; import Dropdown from "../dropdown"; import blue from "../colors/blue"; const options = [ { value: "1", label: "One" }, { value: "2", label: "Two" }, { value: "3", label: "Three" } ]; const NavItemWrapper = styled.div` align-items: center; background: ${blue[900]}; display: flex; min-height: 50px; padding: 0 10px; position: relative; width: 100%; .navBarItem { position: static; & > button { background: transparent; border: none; color: white; padding: 15px; @media (max-width: 768px) { padding: 10px; } &:hover { background: rgba(0, 0, 0, 0.05); color: #ececec; } } } `; export default { title: "Building-Blocks/Dropdown", component: Dropdown } as Meta; export const DropdownWithLabel = (): React.ReactElement => ( More content here ); export const DropdownWithList = (): React.ReactElement => ( {options.map(option => (
  • ))}
    ); export const DropdownWithListAlignMenuLeft = (): React.ReactElement => ( {options.map(option => (
  • ))}
    ); export const DropdownAsOtprrNavItem = (): React.ReactElement => ( {options.map(option => ( ))} );