import { Search } from 'welcome-ui/Search'type Item = { Title: string }const Example = () => {const searchFunction = async (s: string) => {const response = await fetch(`https://www.omdbapi.com?apikey=41514363&s=${s}`)const data = await response.json()return data.Search}return (<SearchitemToString={(item: Item) => item && item.Title}name="movies"placeholder="Search a movie"renderItem={(item: Item) => (<div style={{ alignItems: 'center', display: 'flex' }}>{item.Title}</div>)}search={searchFunction}/>)}export default Example
With option groups
To use option groups, you must provide two additional props: groupsEnabled that allow nested options and renderGroupHeader that renders the header of a specific group