The Autocomplete component requires a Flux Pro license. Learn more about Flux Pro.
Overview
The Autocomplete component provides intelligent search functionality with real-time suggestions, filtering, and keyboard navigation. It seamlessly integrates with Livewire for dynamic data fetching and offers a polished user experience for finding and selecting options.Basic Usage
Create a simple autocomplete input:With Livewire Search
Implement server-side search with real-time filtering:Custom Display
Customize how options are displayed:Multiple Selection
Allow users to select multiple items:With Grouping
Organize suggestions into categories:Use Cases
User Search
Find and select users from a large database without loading all records at once.
Product Finder
Help customers quickly locate products by name, SKU, or category.
Tag Input
Allow users to add multiple tags with autocomplete suggestions.
Location Search
Search for addresses, cities, or places with real-time suggestions.
Features
Smart Filtering
- Real-time search as users type
- Debounced server requests to reduce load
- Fuzzy matching for better results
Keyboard Navigation
- Arrow keys to navigate suggestions
- Enter to select highlighted option
- Escape to close dropdown
- Tab for focus management
Performance
- Lazy loading for large datasets
- Virtual scrolling for thousands of options
- Efficient re-rendering with Livewire
Accessibility
The Autocomplete component follows ARIA best practices:role="combobox"for proper screen reader supportaria-autocompleteandaria-expandedattributesaria-activedescendantfor keyboard navigation- Clear focus indicators and keyboard support