The Shadcn Command uses the pacocoursey/cmdk
library, and according to their docs it should be:
https://github.com/pacocoursey/cmdk?tab=readme-ov-file#input-cmdk-input
const [search, setSearch] = React.useState('')
return <Command.Input value={search} onValueChange={setSearch} />