import { Button } from '../app/components/Button'; import * as DropdownMenu from '../app/components/DropdownMenu'; import { ChevronDown } from '../app/icons/ChevronDown'; import type { Meta } from '@storybook/react'; type SimpleDropdownProps = { items: { name: string }[]; }; export function SimpleDropdown({ items }: SimpleDropdownProps) { return ( {items.map(({ name }, index) => { return (
{name}
); })}
); } const meta = { title: 'Components/Dropdown', component: SimpleDropdown, tags: ['autodocs'], args: { items: [{ name: 'Option 1' }, { name: 'Option 2' }], }, } satisfies Meta; export default meta;