Unreviewed
<InputAutocomplete> is a text field with a suggestion dropdown. Its value is a free-form string. Text not in the list remains valid, and choosing a suggestion fills the field. Use Select with filter when the value must be one of the options.
<InputAutocomplete>
Select
filter
Controlled (value + onValueChange) or uncontrolled (defaultValue). Requires @antadesign/anta/elements (client-side only).
value
onValueChange
defaultValue
@antadesign/anta/elements
<InputAutocomplete label="City" suggestions={['Berlin', 'Bogotá', 'Boston']} value={city} onValueChange={setCity}/> Copy
<InputAutocomplete label="City" suggestions={['Berlin', 'Bogotá', 'Boston']} value={city} onValueChange={setCity}/>
<InputAutocomplete>is a text field with a suggestion dropdown. Its value is a free-form string. Text not in the list remains valid, and choosing a suggestion fills the field. UseSelectwithfilterwhen the value must be one of the options.Controlled (
value+onValueChange) or uncontrolled (defaultValue). Requires@antadesign/anta/elements(client-side only).