Select Dropdown
A fully accessible custom select — keyboard navigation, grouped options, theming via custom properties. ~3.5 KB gzipped.
v0.3.0@magic-spells/select-dropdown
Live demo
250 options. Open it and type to jump. Value: —
Every country, about 250 options — open it and type a few letters to jump straight there.
About
~3.9 KB gzipped (JS + CSS) · Zero dependencies
Usage
<link rel="stylesheet" href="https://unpkg.com/@magic-spells/select-dropdown/dist/select-dropdown.css" /> <script src="https://unpkg.com/@magic-spells/select-dropdown"></script>
Attributes
| Attribute | Description |
|---|---|
| value | Selects the matching option. A value whose option does not exist yet is applied when it appears. |
| disabled | The panel refuses to open; the trigger leaves the tab order and reports aria-disabled. |
| visible | Set by the component while the panel is open — read it, do not write it. Use show() / hide(). |
About, features, usage and options are taken from the package README.