Autocomplete API
View componentThe full prop reference for the Autocomplete component. MUI-style alias around the combobox pattern.
Import
tsx
import { Autocomplete } from '@structyl/styled';Props
Autocomplete.Root
Combobox root; accepts controlled/uncontrolled combobox props.
| Prop | Type | Default |
|---|---|---|
| className# | stringAdditional Tailwind classes merged with the component defaults. | — |
Autocomplete.Input
Search input.
| Prop | Type | Default |
|---|---|---|
| placeholder# | stringInput placeholder. | — |
| className# | stringAdditional Tailwind classes merged with the component defaults. | — |
Autocomplete.Content
Popup content.
| Prop | Type | Default |
|---|---|---|
| className# | stringAdditional Tailwind classes merged with the component defaults. | — |
Autocomplete.Item
Selectable option.
| Prop | Type | Default |
|---|---|---|
| value# | stringOption value. | — |
| className# | stringAdditional Tailwind classes merged with the component defaults. | — |
Source code
If you didn't find what you need here, read the component implementation .