MultiSelect

Searchable multi-value dropdown with keyboard navigation. Renders selected values as chips.

Controlled

import { useState } from 'react'
import { MultiSelect } from '@canarist/ui'

const options = [
  { value: 'us-east', label: 'US East' },
  { value: 'eu-central', label: 'EU Central' },
]

function Example() {
  const [selected, setSelected] = useState(['us-east'])
  return (
    <MultiSelect
      label="Monitor regions"
      options={options}
      value={selected}
      onChange={setSelected}
      placeholder="Select regions…"
    />
  )
}

Reference

PropTypeDefaultDescription
options{ value: string; label: string }[]Available options.
valuestring[]Array of selected values.
onChange(values: string[]) => voidCalled with the updated selection.
labelstringLabel shown above the dropdown.
placeholderstring'Select...'Placeholder text when nothing is selected.
searchablebooleantrueShow a search input inside the dropdown.
disabledbooleanDisable the component.
errorstringError message shown below the dropdown.