import CustomSelect, { CustomSelectProps } from './CustomSelect'; import { Story } from '@storybook/react'; import { useState } from 'react'; import { PicRightOutlined } from '@ant-design/icons'; export default { title: 'Components/CustomSelect', component: CustomSelect, }; const Template: Story = (props: CustomSelectProps) => { const [value, setValue] = useState( props.options[0] as string | { value: string } ); return ( ); }; export const Default = Template.bind({}); Default.args = { options: [ { label: 'foo', value: 'foo' }, 'bar', { label: , value: '1', searchable: 'icon' }, { label: (
{' '} Label
), value: '1', searchable: 'icon', }, { label: 'un groupe', options: ['a', 'b', 'c'] }, ], };