import React, { useState } from 'react' import { DropdownSearch, DropdownSearchProps, icons } from 'app/components' type DemoDropdownSearchProps = DropdownSearchProps const options: DemoDropdownSearchProps['searchOptions'] = ([ 1, 2, 3, 4, 5 ]) .map((i: number) => ({ inputValue: 'option ' + i, value: i, ...( i == 2 ? { disabled: true } : {}) })) const Demo = () => { const [ selected, setSelected ] = useState(0) const props: DemoDropdownSearchProps = { selected, placeholder: 'type "option..."', onChange(id) { setSelected(id!) }, searchOptions: options } return <>

} Demo.coreSrcDirName = 'DropdownSearch' export default Demo