Variants
Sizes and states, all built from the same markup.
Usage
Paste the markup, include assets/css/tokens.css and assets/css/tailwind.css, then run the script from this page.
Accessibility
- Role and state. A search landmark with a real type="search" input. Each find is a toggle button with aria-pressed, and a polite status line announces how many finds are beeping and their names.
- Keyboard. Type to filter, Tab to the finds, Space or Enter to unearth one, Reset clears the query. Esc clears the native search field. Focus rings are always visible.
- Pointer and touch. Move the pointer over the sand to steer the detector, click near a find to dig it up. The chips below are the equivalent path, hit targets are 40px tall.
- Reduced motion. With reduced motion the coil parks over the first match, finds jump to their state and no particles, beeps or sweeps play. Counts and chip states are unchanged.