Skip to content
Nana UI

Select

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
PropertyTypeDefaultDescription
labelstring''
valuestring''
namestring''
placeholderstring''
size'xs' | 'sm' | 'md' | 'lg''md'
openbooleanfalse
disabledbooleanfalse
requiredbooleanfalse
clearablebooleanfalse
searchablebooleanfalse
multiplebooleanfalse
invalidbooleanfalse
helperTextstring''
errorMessagestring''
inputIdnana-select-${Math.random().toString(36).slice(2, 7)}
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