Selectra
Alpine.js + Tailwind CSS — No jQuery required
Progressive Enhancement: Use native <select> tags with x-selectra. Works as a standard select when JavaScript is disabled!
Single Select
Basic single-value selection with search.
Multi Select (Tags)
Select multiple values with removable tags.
Tagging (Create New)
Create new tags on the fly. Supports paste with comma-separated values.
Option Groups
Grouped options with headers.
Remote Loading (Multi)
Load options from API with search. Try typing "a", "b", or "c".
Remote Loading (Single)
Load options from API for single select. Try typing "a", "b", or "c".
Max Items Limit
Limited to 3 items maximum.
Native <select> Enhancement
Place x-selectra directly on a <select> — options are read automatically. Works without JavaScript!
Form Field Name
Use a native <select> with multiple to submit form data. Selectra enhances the UI while maintaining standard HTML semantics.
Standard Select
Selectra works seamlessly with standard semantic HTML <select> elements. No configuration needed for simple cases.
Multi Select with Count
Shows number of selected items as a badge instead of individual tags. Selected options display a checkmark in the dropdown.
Direct on <select>
Place x-selectra directly on a <select> — no wrapper <div> needed. The plugin auto-wraps it.
Direct Multi-select on <select>
A <select multiple> with x-selectra directly on it. Mode is auto-detected from the multiple attribute.