Skip to content
Nana UI

Select

View .md Download

A <nana-select> element.

Kenya Uganda
Terminal window
npm install @nana-tec/ui-components
import "@nana-tec/ui-components/select";
<nana-select label="Country" style="min-width:16rem">
<nana-option value="ke">Kenya</nana-option>
<nana-option value="ug">Uganda</nana-option>
</nana-select>

Add searchable to filter options; clearable adds a reset button.

United States Canada Mexico

Set multiple — selected values render as removable chips.

United States Canada Mexico

Properties

PropertyAttributeTypeDefaultDescription
clearablebooleanfalse
disabledbooleanfalse
errorMessageerror-messagestring''
helperTexthelper-textstring''
inputId`nana-select-${Math.random().toString(36).slice(2, 7)}`
invalidbooleanfalse
labelstring''
multiplebooleanfalse
namestring''
openbooleanfalse
placeholderstring''
requiredbooleanfalse
searchablebooleanfalse
sizeSelectSize'md'
valuestring''
PartDescription
triggerThe trigger element
panelThe floating listbox panel
chipA selected-value chip (multi-select only)
searchThe search input
  • Keyboard accessible
  • Screen-reader labels
  • Focus-visible states
  • ARIA roles and states
  • WCAG 2.2 AA contrast
Explore Select interactively Every state, prop, and edge case — with live controls — in Storybook.
View in Storybook