import { ComponentMeta } from '@storybook/react'; import { Select, SelectDisplay } from '@tih/ui'; import React, { useState } from 'react'; const SelectDisplays: ReadonlyArray = ['inline', 'block']; export default { title: 'Select', component: Select, argTypes: { display: { options: SelectDisplays, control: { type: 'select' }, }, isLabelHidden: { control: 'boolean', }, label: { control: 'text', }, name: { control: 'text', }, }, } as ComponentMeta; export function Basic({ display, isLabelHidden, label, name }) { const [value, setValue] = useState('apple'); return ( ); }