# Shadcn Autocomplete Components

A text field that allows users to select an option from a list. Each variant plays nicely with both Radix UI and Base UI form patterns.

- Page: https://shadcnuikit.com/components/autocomplete
- Variants: 5 (5 free, 0 pro)
- Built with shadcn/ui, Tailwind CSS v4, React and Next.js

- [Variant 1](https://shadcnuikit.com/components/autocomplete/1) (Free, install: `npx shadcn@latest add @shadcnuikit/autocomplete1`)
- [With clear button](https://shadcnuikit.com/components/autocomplete/2) (Free, install: `npx shadcn@latest add @shadcnuikit/autocomplete2`)
- [With groups and labels](https://shadcnuikit.com/components/autocomplete/3) (Free, install: `npx shadcn@latest add @shadcnuikit/autocomplete3`)
- [Autocomplete with async items loading](https://shadcnuikit.com/components/autocomplete/4) (Free, install: `npx shadcn@latest add @shadcnuikit/autocomplete4`)
- [Autocomplete auto highlighting the first option](https://shadcnuikit.com/components/autocomplete/5) (Free, install: `npx shadcn@latest add @shadcnuikit/autocomplete5`)

## Install with the shadcn CLI

Add the registry to components.json once:

```json
"registries": {
  "@shadcnuikit": {
    "url": "https://shadcnuikit.com/r/{name}.json",
    "headers": {
      "Authorization": "Bearer ${REGISTRY_TOKEN}"
    }
  }
}
```

Then install any item by its registry name, for example `npx shadcn@latest add @shadcnuikit/hero1`. Free items install without an API key. Pro items need a license and an API key from https://shadcnuikit.com/account/api-keys, set as REGISTRY_TOKEN in your .env file.

More from Shadcn UI Kit: [llms.txt](https://shadcnuikit.com/llms.txt)