The Autocomplete component provides a text input with a dropdown list of suggestions that filters as the user types.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/yogendrarana/craftdotui/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Usage
This component is built on @base-ui/react’s Autocomplete primitive. Refer to the source code for the complete API and implementation details.
Features
- Type-ahead filtering
- Keyboard navigation
- Custom rendering of options
- Async data loading support
- Multiple selection mode
- Accessible by default
Examples
Basic Autocomplete
Controlled
Accessibility
- Built on @base-ui/react for accessibility
- ARIA combobox pattern
- Keyboard navigation support
- Screen reader announcements