NUIv3.0.7

Multi Select

A fully accessible, token-driven MultiSelect component built with strict WAI-ARIA compliance.

tsx
import { MultiSelect } from '@nofinite/nui';

Interactive Preview

Loading preview...

Usage

Basic Example

tsx
import { MultiSelect } from '@nofinite/nui';

<MultiSelect />

API Reference

PropTypeDefaultDescription
options*MultiSelectOption[]Array of available options
valuestring[]Controlled state for selected values
defaultValuestring[]Uncontrolled initial state for selected values
onChange((value: string[]) => void)Callback fired when the selection changes
placeholderstringSelect multiple...Text displayed when no options are selected
namestringName attribute applied to hidden inputs for native form submission
errorbooleanfalseToggles error styling
maxTagsnumber3Number of tags to render before collapsing into a summary string (e.g., "3 selected")

Accessibility & Guidelines

  • Semantic Tokens: Built strictly using Nuicss semantic tokens (bg-surface, text-default, border-subtle, bg-primary).
  • Keyboard Navigation: Adheres to strict WAI-ARIA standards.
  • Screen Reader Support: Includes semantic roles and live regions where appropriate.