Combobox combines a text input with a list of suggested values.
Combobox wraps Reach UI's Combobox component with default styling and accepts all the same props. See the Reach UI docs for details.
Arbitrary components can be nested inside the Combobox.Popover to allow for more advanced usecases, e.g. adding a new value to the list of suggestions
Note that when combined with a Label, the id that matches the Label's htmlFor prop should go on the Combobox.Input.
<divclassName="w-100"><LabelclassName="mb-3"htmlFor="someid"> What's your favourite fruit?</Label><ComboboxonSelect={console.log}openOnFocus><Combobox.Inputid="someid"/><Combobox.Popover><Combobox.List><Combobox.Optionvalue="Apple"/><Combobox.Optionvalue="Banana"/><Combobox.Optionvalue="Cranberry"/><Combobox.Optionvalue="Dragon fruit"/><divclassName="flex items-center p-2"><Inputsize="sm"placeholder="New fruit"/><Buttonsize="sm"className="ml-2"onClick={()=>alert('Nest other interactive UI here for advanced usecases')}> Add a new fruit </Button></div></Combobox.List></Combobox.Popover></Combobox></div>