structyl

Autocomplete API

View component

The 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.

PropTypeDefault
className#string

Additional Tailwind classes merged with the component defaults.

Autocomplete.Input

Search input.

PropTypeDefault
placeholder#string

Input placeholder.

className#string

Additional Tailwind classes merged with the component defaults.

Autocomplete.Content

Popup content.

PropTypeDefault
className#string

Additional Tailwind classes merged with the component defaults.

Autocomplete.Item

Selectable option.

PropTypeDefault
value#string

Option value.

className#string

Additional Tailwind classes merged with the component defaults.

Source code

If you didn't find what you need here, read the component implementation .

structyl — Accessible React Component Library