import React, { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; import Select, { Option } from './Select'; const meta: Meta = { title: 'Components/Select', component: Select, parameters: { layout: 'centered', }, tags: ['autodocs'], }; type Story = StoryObj; const defaultArgs = { options: [ { label: 'Option1', value: 'option1', disabled: false, }, { label: 'Option2', value: 'option2', disabled: false, }, { label: 'Option3', value: 'option3', disabled: true, }, { label: 'Option4', value: 'option4', disabled: false, }, { label: 'Option5', value: 'option5', disabled: true, }, { label: 'Option6', value: 'option6', disabled: false, }, ], placeholder: 'Select any option', showLabel: false, }; export const BasicSelect: Story = { args: { ...defaultArgs, }, }; export const ControlledVariants: Story = { render: () => { const [value, setValue] = useState