fndn/ui

Components

Listbox

Beta

A list of options in the page to pick one or several, without a popup.

Details

A list of options laid in the page to pick one or several, without a popup. The select's list laid in the page: option rows under one gliding highlight, in a box with the popup's padding and radius but the field's hairline instead of a lift. Single choice (a click replaces) or multiple (a click adds or removes); a check marks every chosen row. The list holds focus and the arrow keys move the highlight, which glides under the pointer and the keyboard alike. Behaviour, focus and ARIA come from the Zag listbox machine, through Ark UI.

Behaviour from Ark UI, the listbox machine of Zag.