import { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react-vite'; import { SetField } from './SetField.tsx'; type Fruit = 'apple' | 'banana' | 'blueberry' | 'mango'; type Story = StoryObj>; export default { component: SetField } as Meta; export const Select: Story = { decorators: [ (Story) => { const [value, setValue] = useState | undefined>(); return ( ); } ] }; export const Listbox: Story = { decorators: [ (Story) => { const [value, setValue] = useState | undefined>(); return ( ); } ] };