import SimpleSelect from '@/components/SimpleSelect'; import { Meta, StoryObj } from '@storybook/react'; const meta: Meta = { title: 'SimpleSelect', component: SimpleSelect, tags: ['autodocs'], }; export default meta; type Story = StoryObj; export const Default: Story = { args: { label: 'Fruits', required: true, options: [ { value: 1, label: 'Apple' }, { value: 2, label: 'Orange' }, { value: 3, label: 'Banana' }, ], }, }; export const WithError: Story = { args: { errors: ['The fruits field is required'], label: 'Fruits', required: true, options: [ { value: 1, label: 'Apple' }, { value: 2, label: 'Orange' }, { value: 3, label: 'Banana' }, ], }, };