Skip to main content
Version: Next

MultiSelect API

import { MultiSelect } from '@editora/ui-react';

Props​

PropTypeDescription
clearableboolean
density'default' | 'compact' | 'comfortable'
descriptionstring
disabledboolean
elevation'none' | 'low' | 'high'
errorstring
labelstring
loadingboolean
loadingTextstring
maxSelectionsnumber
namestring
onChange(detail: { value: string[]; previousValue: string[]; selectedItems: MultiSelectOption[]; source: string }) => void
onValueChange(value: string[]) => void
optionBorderboolean
optionRadiusnumber | string
options (required)Array<MultiSelectOption | MultiSelectOptionGroup>
placeholderstring
radiusnumber | string
readOnlyboolean
renderLimitnumber
requiredboolean
selectionIndicator'checkbox' | 'check' | 'none'
shape'default' | 'square' | 'soft'
size'sm' | 'md' | 'lg' | '1' | '2' | '3'
tone'default' | 'neutral' | 'info' | 'success' | 'warning' | 'danger'
valuestring[]
variant'default' | 'surface' | 'soft' | 'solid' | 'outline' | 'flat' | 'contrast' | 'filled' | 'minimal'

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Element: <ui-multi-select>​

MultiSelect renders the ui-multi-select custom element from @editora/ui-core, which can also be used without React.

Attributes: aria-describedby, aria-description, aria-label, clearable, data-error, density, description, disabled, elevation, label, loading, loading-text, max-selections, name, open, option-border, option-radius, options, placeholder, radius, readonly, render-limit, required, selection-indicator, shape, size, tone, value, variant

Events: change