The Pillbox component requires a Flux Pro license. Learn more about Flux Pro.
Overview
Pillbox provides an intuitive interface for managing multiple values, where each value appears as a dismissible “pill” that users can easily add or remove.Use Cases
Tagging System
Add and manage tags for posts, products, or content
Email Recipients
Select multiple email recipients with autocomplete
Filters
Build multi-criteria filter selections
Categorization
Assign multiple categories or labels
Key Features
- Add/Remove Pills - Click to add, click X to remove
- Autocomplete - Suggest values as user types
- Keyboard Navigation - Backspace to remove, Enter to add
- Validation - Prevent duplicates and invalid entries
- Max Items - Limit number of selections
- Custom Rendering - Customize pill appearance
- Livewire Binding - Seamless wire:model integration
- Paste Support - Parse pasted comma-separated values
Common Patterns
Email Recipients
Tags with Autocomplete
Color-Coded Pills
Props
| Prop | Type | Description |
|---|---|---|
wire:model | string | Livewire property binding (array) |
placeholder | string | Input placeholder text |
suggestions | array | Autocomplete suggestions |
delimiter | string | Character to split pasted values |
max | int | Maximum number of items |
validate | string | Validation rule (email, url, etc.) |
allow-duplicates | bool | Allow duplicate values |
disabled | bool | Disable the input |
Validation
Pillbox integrates with Livewire validation:Accessibility
- ARIA labels for pills and remove buttons
- Keyboard navigation (Tab, Backspace, Enter)
- Screen reader announcements for additions/removals
- Focus management
- Proper list semantics
Related Components
- Autocomplete - Search with suggestions
- Select - Single-select dropdown
- Checkbox Group - Multi-select alternative