import type { Meta, StoryObj } from '@storybook/react-vite'; import { Fragment } from 'react'; import { Button, ControlledDropdown as ControlledDropdownComponent, } from '../src/components'; const variants = ['primary', 'secondary', 'tertiary'] as const; const meta: Meta = { component: ControlledDropdownComponent, title: 'Forms/Dropdown', args: { expanded: false }, render: ({ expanded }) => (

Controlled dropdowns (trigger through storybook controls)

{variants.map((variant) => ( Download} expanded={expanded} >

Download content from:

{' '}
))}
), }; export default meta; type Story = StoryObj; export const ControlledDropdown: Story = {};