Skip to content
CraftDocs
GitHub
Home
Home
Changelog
What's New
Guide
Guide
Getting Started
Principles
Styling Components
Theme System
Foundations
All Tokens
Color
Elevation
Icons
Motion
Shape
Spacing
Typography
Libraries
Libraries
@xds/cli
@xds/core
Themes
Themes
Theme: daily
Default Theme
Theme: matcha
Neutral Theme
Components
Components
AppShell
AspectRatio
Avatar
Avatar
AvatarStatusDot
Badge
Banner
Breadcrumbs
BreadcrumbItem
Breadcrumbs
Button
Button
IconButton
ToggleButton
ToggleButtonGroup
Calendar
Card
Carousel
Chat
ChatComposer
ChatComposerDrawer
ChatComposerInput
ChatComposerTokenElement
ChatDictationButton
ChatLayout
ChatLayoutScrollButton
ChatMessage
ChatMessageBubble
ChatMessageList
ChatMessageMetadata
ChatSendButton
ChatSystemMessage
ChatTokenizedText
ChatToolCalls
Checkbox
CheckboxInput
CheckboxList
CheckboxListItem
ClickableCard
Code
CodeBlock
Collapsible
Collapsible
CollapsibleGroup
useXDSCollapsible
CommandPalette
CommandPalette
CommandPaletteEmpty
CommandPaletteFooter
CommandPaletteGroup
CommandPaletteInput
CommandPaletteItem
CommandPaletteList
DateInput
Dialog
AlertDialog
Dialog
DialogHeader
useXDSImperativeAlertDialog
useXDSImperativeDialog
Divider
DropdownMenu
DropdownMenu
DropdownMenuDivider
DropdownMenuItem
DropdownMenuItemData
DropdownMenuSection
EmptyState
Field
Field
FieldLabel
FieldStatus
Heading
HoverCard
Icon
Kbd
Layout
Center
FormLayout
Grid
GridSpan
HStack
Layout
LayoutContainer
LayoutContent
LayoutFooter
LayoutHeader
LayoutPanel
Section
StackItem
VStack
Link
List
List
ListItem
Markdown
MetadataList
MetadataList
MetadataListItem
MobileNav
MoreMenu
NavIcon
NavMenuItem
NumberInput
OverflowList
Pagination
Popover
PowerSearch
ProgressBar
Radio
RadioList
RadioListItem
Resizable
ResizeHandle
useXDSResizable
SegmentedControl
SegmentedControl
SegmentedControlItem
SelectableCard
Selector
MultiSelector
Selector
SelectorOption
SideNav
SideNav
SideNavCollapseButton
SideNavHeading
SideNavItem
SideNavSection
Skeleton
Slider
Spinner
StatusDot
Switch
Table
BaseTable
Table
TableCell
TableHeaderCell
TableRow
useXDSTableColumnSettings
useXDSTablePagination
useXDSTableSelection
useXDSTableSelectionState
useXDSTableSortable
Tabs
Tab
TabList
TabMenu
Text
TextArea
TextInput
Thumbnail
TimeInput
Timestamp
Toast
Toast
useXDSToast
Token
Tokenizer
Toolbar
Tooltip
TopNav
TopNav
TopNavHeading
TopNavItem
TopNavMegaMenu
TopNavMegaMenuFeaturedCard
TopNavMegaMenuItem
TopNavMenu
TreeList
Typeahead
BaseTypeahead
Typeahead
TypeaheadItem
useXDSHoverCard
useXDSPopover
useXDSTooltip
Utilities
Utilities
LinkProvider
MediaTheme
SyntaxTheme
Theme
useClickableContainer
useEntryAnimation
useFocusTrap
useGridFocus
useImageMode
useInputContainer
useListFocus
useMediaQuery
useOverflow
useScrollLock
useScrollOverflow
useXDSLayer
useXDSStreamingText
Terms of UsePrivacy Policy
Type to search
↑↓Navigate↵SelectEscClose
MultiSelector@xds/core v0.0.13 · XDSMultiSelector

Usage

A checkbox dropdown for selecting multiple values from a list. Selected items can display as a count, labels, or badges. Use it for filtering or when presenting a finite set of options where multiple choices are needed.
ts
import {XDSMultiSelector} from '@xds/core/MultiSelector'

Best practices

GuidancePractices
DoUse for a moderate, finite set of options where multiple choices are needed.
DoEnable search filtering when the list exceeds ~15 options.
DoEnable select-all when most users will want all or nearly all options selected.
Don'tUse for single-value selection — use Selector instead.
Don'tShow more than ~20 options without enabling search.

Sub-components

MultiSelector is a compound component with 1 sub-component.

XDSMultiSelector

Multi-select dropdown with checkboxes for choosing multiple items.
PropTypeDescription
labelrequired
stringLabel text for accessibility.
optionsrequired
XDSMultiSelectorOptionType[]Array of items — strings, objects with value/label/icon/disabled, dividers, or sections.
valuerequired
string[]Currently selected values.
onChangerequired
(value: string[]) => voidCallback fired when the selection changes.
changeAction
(value: string[]) => void | Promise<void>Async action on change. Fires after onChange.
placeholder
string (default: 'Select...')Placeholder text shown when no value is selected.
size
'sm' | 'md' | 'lg' (default: 'md')Size variant for the selector.
triggerDisplay
'count' | 'labels' | 'badges' (default: 'count')How to display selected items in the trigger.
maxBadges
number (default: 3)Maximum badges to show before "+N". Only for triggerDisplay="badges".
hasSelectAll
booleanWhether to show a select-all checkbox.
selectAllLabel
string (default: 'Select all')Label for the select-all checkbox.
hasSearch
booleanWhether to show a search input for filtering options.
searchPlaceholder
string (default: 'Search...')Placeholder text for the search input.
isDisabled
booleanDisables the selector.
isLabelHidden
booleanVisually hides the label while keeping it accessible.
description
stringHelper text displayed below the label.
isOptional
booleanMarks the field as optional.
isRequired
booleanMarks the field as required.
isLoading
booleanShows a loading spinner in the trigger.
status
{type: 'error' | 'warning' | 'success', message?: string}Validation status with an optional message.
children
(option: XDSMultiSelectorOptionData) => ReactNodeCustom render function for each option in the dropdown.
xstyle
StyleXStylesStyleX styles for layout customization. Must be a stylex.create() value.

Examples

Common configurations, variations, and states.
MultiSelector — Column Visibility
Column visibility toggle with hidden label, search, select-all, and selection count.
MultiSelector — Form Composition
Two multi-selectors in a form with required/optional states.
MultiSelector — Searchable
Multi-select with search filtering and select-all.
MultiSelector — Sectioned Permissions
Multi-select with options grouped into labeled sections.