import type { ChangeEvent } from 'react' import React, { useState } from 'react' import { Select, Form, Container, NumberInput } from '@toptal/picasso' import { SPACING_4 } from '@toptal/picasso-utils' const SelectSearchBehaviourExample = () => { const [value, setValue] = useState('') const [threshold, setThreshold] = useState(4) const handleChange = ( event: ChangeEvent<{ name?: string value: string }> ) => { setValue(event.target.value) } const handleThresholdChange = ( event: React.ChangeEvent ) => { setThreshold(parseInt(event.target.value, 10)) } return ( Search for an option ) } const OPTIONS = [ { value: '1', text: 'Option 1' }, { value: '2', text: 'Option 2' }, { value: '3', text: 'Option 3' }, { value: '4', text: 'Option 4' }, { value: '5', text: 'Option 5' }, ] export default SelectSearchBehaviourExample