9.2k

Autocomplete

An input that suggests options as you type.

API Reference

Installation

Usage

API Reference

Autocomplete

The root autocomplete component. Manages the autocomplete state and provides context to child components.

AutocompleteInput

The input field component with extended features for size variants and addon support.

AutocompletePopup

The popup container that displays the autocomplete suggestions.

AutocompleteList

A scrollable container for autocomplete items.

AutocompleteItem

An individual selectable autocomplete item.

AutocompleteEmpty

Displays a message when no results are found.

AutocompleteGroup

Groups related autocomplete items together.

AutocompleteGroupLabel

Displays a label for an autocomplete group.

AutocompleteCollection

Used to wrap items within a group for rendering.

Examples

Disabled

Small Size

Large Size

With Label

Inline Autocomplete

Autofill the input with the highlighted item while navigating with arrow keys.

Auto Highlight

Automatically highlight the first matching option.

With Clear Button

With Trigger and Clear Buttons

With Start Addon

Display an icon or other element at the start of the input using the startAddon prop.

With Groups

With Limit Results

Form Integration

coss.com ui

Built by and for the team of Cal.com, Inc. — the leading commercial open source company (“coss”).