A text field that suggests as you type: filter, arrows, Enter, groups, server search with loading.
Autocomplete default
Install
npx shadcn add @syncrobotic/autocomplete Also installs: lucide-react, @syncrobotic/cn, @syncrobotic/field, @syncrobotic/popover, @syncrobotic/spinner, @syncrobotic/use-debounce
Overview
A text field with a list of suggestions that narrows as you type, for picking one value from many.
More examples
States and real uses. Each example is also a Storybook story and a visual regression test.
Autocomplete groups
Autocomplete no trigger
Autocomplete server search
Autocomplete small
Autocomplete disabled
Autocomplete in form
Autocomplete error
Autocomplete long list
Autocomplete recent
Autocomplete required
Autocomplete descriptions
Usage rules
- For picking one of many known values; for free text use Input.
- Disabled options stay in the list so people see why they cannot pick them.
- Inside a Field it takes the label, note and error.
Changelog
- 0.23.12026-11-21A new selection writes its label into the field in the render that brings it instead of an effect later, so it is safe under the React Compiler.
- 0.23.02026-11-20Every word it says can be translated without editing the source:
labels(AutocompleteLabels: placeholder, empty, searching, searchingStatus, clear, showAll, suggestions).placeholderandemptyTextstill work and win over it. - 0.17.32026-11-19Disabled: the field keeps its grey fill with a --border edge, so in dark mode it no longer looks enabled; its words use the new --disabled (3:1 on every surface).