x-select
is an Alpine.js directive which provides a styled enhancement over a native <select>
element.
Its main goal is to be a progressive enhancement adding no actual features to a select dropdown apart from making it more visually appealing to use (especially for select fields with multiple
).
Further goals include:
- Accessibility: Appropriate ARIA roles are set, expected keyboard shortcuts can be used.
- Easy stylability: Custom properties exist for the main features.