Hextech UI

Multiple Select

Live example

Multiple Select

Installation

Terminal
npx shadcn@latest add https://hextech-ui.vercel.app/r/multiple-select.json

API reference

These are the main Multiple Select options. See the exported TypeScript types for inherited native or primitive props.

PropTypeDefault
labelstring (required)—
optionsreadonly T[]required
getOptionKey / itemToStringLabelidentity and display gettersstring/id/value + label
value / defaultValuereadonly T[]—
renderOption / renderValuecustom option / chip content—
isOptionDisabled(option: T) => boolean—
emptyState / emptySelectionReactNodeno matches / —
sizesmall | medium | largemedium
clearOnEscapeboolean; closed Escape clears only when enabledfalse

Object records

Use stable getOptionKey values and readable itemToStringLabel text for object options. Own selections with value and onValueChange, or seed local state with defaultValue. Use isOptionDisabled for unavailable choices and keep the label visible.