items | AutocompleteItem[] | - | |
|
label | string | - | |
|
description | string | - | A line under the input, for what the field expects rather than a restatement of the label. |
| A line under the input, for what the field expects rather than a restatement of the label. |
placeholder | string | - | Placeholder text. |
| Placeholder text. |
icon | ReactNode | - | |
|
iconPosition | leading | trailing | leading | Which end icon sits at. |
Which end icon sits at. |
autoHighlight | boolean | false | Highlights the first match as you type, so Enter takes it without an arrow key first. |
| Highlights the first match as you type, so Enter takes it without an arrow key first. |
limit | number | 0 | |
|
emptyMessage | string | - | Shown when nothing matches. |
| Shown when nothing matches. |
size | sm | md | lg | md | |
|
shape | square | rounded | squircle | pill | rounded | |
|
disabled | boolean | false | Blocks interaction and dims the field. |
| Blocks interaction and dims the field. |
loading | boolean | false | |
|
animated | boolean | true | |
|
focus | boolean | string | true | |
|
container | HTMLElement | null | - | |
|