Skip to main content
ALEXY LINK

Select 07

An async-ready select demonstrating loading, results, empty, and error states with accessible remote-search feedback.

Requirements

HTML, CSS, JavaScript

Dependencies

None

Usage

Copy index.html, styles.css and script.js into your project.

Typography: Inter, with a system sans-serif fallback.

About Select 07

Select 07 is a select component in the Select Components collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated September 8, 2026.

  • select
  • async select
  • remote select

What the code includes

HTML + CSS + JavaScript

3 files: index.html, styles.css, script.js

  • Behavior is handled in script.js.
  • ARIA in the markup: roles combobox, status; aria-expanded, aria-controls, aria-haspopup, aria-live.
  • HTML elements used: input, label, svg.
  • Keyboard keys handled: Escape, Enter, ArrowUp, ArrowDown.
  • Includes a prefers-reduced-motion rule for its animation.

React + TypeScript + Tailwind CSS

3 files: Select07.jsx, Select07.types.ts, Select07.tailwind.css

  • Configurable through 10 props: label, placeholder, value, defaultValue, onValueChange, onSearch, selectedOption, defaultOpen, defaultQuery, className.
  • Uses React hooks: useEffect, useId, useLayoutEffect, useRef, useState.
  • ARIA in the markup: roles combobox, status, listbox, option; aria-live, aria-expanded, aria-controls, aria-haspopup, aria-activedescendant, aria-label and 1 more.
  • HTML elements used: ul, button, input, label, svg.
  • Keyboard keys handled: Escape, Enter, ArrowUp, ArrowDown.
  • Includes a prefers-reduced-motion rule for its animation.
View all Select Components (10)