0
Components
API reference

Autocomplete

A text input that suggests and filters a list of options as the user types.

Installation

Usage

Examples

Grouped Items

With Trigger & Leading Icon

Small

Large

Rounded

Open with Ctrl + Space

API Reference

Autocomplete

Wraps Autocomplete.Root from Base UI. Manages the input value, open state, and item filtering.

PropTypeDefaultDescription
itemsreadonly unknown[]-Items (or groups) used to filter and render the list
openOnCtrlSpacebooleanfalseOpens the suggestions popup when pressing Ctrl + Space
valuestring-Controlled input value
defaultValuestring-Initial uncontrolled input value
onValueChange(value: string) => void-Called when the input value changes
...propsBase UI Autocomplete Root props-All other Autocomplete Root props are supported

AutocompleteInput

Styled input group with optional leading addon, clear button, and dropdown trigger.

PropTypeDefaultDescription
variant"filled" | "outline" | "outlined""filled"Visual style variant
shape"pill" | "round" | "rounded" | "square""pill"Border radius shape
size"sm" | "default" | "md" | "lg""default"Size of the input and internal buttons
showTriggerbooleanfalseDisplays a trailing chevron trigger button
showClearbooleanfalseDisplays a clear button when the input has text
startAddonReact.ReactNode-Leading element (such as an icon)
triggerPropsAutocomplete.Trigger.Props-Props forwarded to the trigger button
clearPropsAutocomplete.Clear.Props-Props forwarded to the clear button
...propsBase UI Autocomplete Input props-All standard autocomplete input props

AutocompletePopup

Positioned dropdown container rendered inside a portal.

PropTypeDefaultDescription
colorScheme"standard" | "vibrant""standard"Surface tint scheme
side"top" | "bottom" | "left" | "right""bottom"Preferred side relative to the input
align"start" | "center" | "end""start"Alignment along the chosen side
sideOffsetnumber6Distance in pixels from the anchor
alignOffsetnumber0Offset along the alignment axis
portalPropsAutocomplete.Portal.Props-Props forwarded to the internal portal
...propsBase UI Autocomplete Popup props-All standard autocomplete popup props

AutocompleteList

Scrollable container for suggestion items. Accepts a render function or static children.

PropTypeDescription
classNamestringAdditional CSS classes
...propsBase UI Autocomplete List propsAll standard autocomplete list props

AutocompleteItem

An individual selectable suggestion item.

PropTypeDescription
valueunknownThe value of the item
classNamestringAdditional CSS classes
...propsBase UI Autocomplete Item propsAll standard autocomplete item props

AutocompleteEmpty

Displays a message when no items match the current query.

PropTypeDescription
classNamestringAdditional CSS classes
...propsBase UI Autocomplete Empty propsAll standard autocomplete empty props

AutocompleteGroup

Groups related items together.

PropTypeDescription
itemsreadonly unknown[]Items that belong to this group
classNamestringAdditional CSS classes
...propsBase UI Autocomplete Group propsAll standard autocomplete group props

AutocompleteGroupLabel

Displays a label for an AutocompleteGroup.

PropTypeDescription
classNamestringAdditional CSS classes
...propsBase UI Autocomplete Group Label propsAll standard autocomplete group label props

AutocompleteCollection

Alias for Autocomplete.Collection. Used inside AutocompleteGroup to render grouped items.

AutocompleteSeparator

A visual divider between groups or items.

AutocompleteStatus

Live status region for async loading or result counts.

AutocompleteTrigger / AutocompleteClear / AutocompleteValue / AutocompleteRow

Lower-level primitives re-exported for custom compositions.

© taut ui — built with Base UI and Tailwind CSS v4.