Skip to content

0.1.0-alpha.2

Pre-release
Pre-release

Choose a tag to compare

@uhyo uhyo released this 17 Oct 14:29

What's Changed

Features

  • Add the Select component: a real <select> progressively enhanced with customizable select (appearance: base-select). Parts: Root, Trigger, Value (<selectedcontent>), Option, Group / GroupLabel, Separator. Its valueAction runs in a transition, shows the optimistic value, and works with forms (including form reset) and server rendering / hydration.
  • Add the Combobox component, following the WAI-ARIA APG pattern: an <input role="combobox"> with a listbox in a popover="auto" popup and aria-activedescendant focus.
    • Typing goes through the urgent inputValueChangeAction. Results are deferred and expose data-stale / aria-busy.
    • A Status part inside the List marks loading.
    • Result counts are announced in English by default, and you can override the text with announce.
    • Other options: autoHighlight, and a hidden form input when name is set.
  • Export the UrgentChangeAction type.

Full Changelog: 0.1.0-alpha.1...0.1.0-alpha.2