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