Components · Form Controls
Type-to-search input with matching options dropdown.
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| options | { value: string; label: string }[] | — | ✓ | Array of options available for selection. |
| value | string | — | — | The controlled selected value. |
| onValueChange | (value: string) => void | — | — | Callback fired when the selected value changes. |
| placeholder | string | — | — | Placeholder text shown in the input when empty. |
| emptyText | string | — | — | Text shown when no options match the current search query. |
| loading | boolean | — | — | Shows a loading indicator while options are being fetched. |
import { Autocomplete } from '@nexub/react';