Skip to content
CraftDocs
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
NavHeadingMenu
NavIcon
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
CheckboxList@xds/core v0.0.13 · XDSCheckboxList

Usage

CheckboxList shows a small group of checkboxes so users can turn several options on or off at once. Place it in settings pages, filter panels, or forms where every choice should be visible without scrolling. For a single standalone checkbox — like "I agree to the terms" — use CheckboxInput instead. If only one option can be picked, use RadioList. If the list is long enough to need searching or scrolling, use MultiSelector instead.
ts
import {XDSCheckboxList} from '@xds/core/CheckboxList'

Best practices

GuidancePractices
DoKeep the list short — three to seven options is the sweet spot. Beyond that, switch to MultiSelector which adds search and scrolling.
DoTurn on dividers (hasDividers) when items have helper text underneath — without them the labels and descriptions blur together.
DoWrite a group label that says what the choices represent — "Export formats" tells users more than "Options".
Don'tShow a CheckboxList when the user can only pick one thing — that is what RadioList is for.
Don'tPut buttons or links inside the trailing slot (endContent) — the whole row is already tappable, so a nested button creates two competing click targets.

Sub-components

CheckboxList is a compound component with 2 sub-components.

XDSCheckboxList

Checkbox group container with field integration for label, description, and status.
PropTypeDescription
labelrequired
stringLabel text for the checkbox group (always rendered for accessibility).
childrenrequired
ReactNodeXDSCheckboxListItem elements.
value
string[]The currently selected values (collection mode).
onChange
(values: string[]) => voidCallback fired when the selected values change.
changeAction
(values: string[]) => void | Promise<void>Async action on change with optimistic updates.
isLoading
boolean (default: false)External loading state.
isLabelHidden
boolean (default: false)Whether to visually hide the label.
description
stringDescription text displayed below the label.
density
'compact' | 'balanced' | 'spacious' (default: 'balanced')Spacing density for list items.
hasDividers
boolean (default: false)Whether to show dividers between items.
isDisabled
boolean (default: false)Whether all checkbox items are disabled.
status
XDSInputStatusStatus indicator ({ type, message }).
xstyle
StyleXStylesStyleX styles for layout customization. Must be a stylex.create() value.

XDSCheckboxListItem

Individual checkbox item with label, description, and end content slot. Works in collection mode (inside XDSCheckboxList) or standalone mode (inside XDSList).
PropTypeDescription
labelrequired
stringPrimary text label for the item.
value
stringIdentity key (required inside XDSCheckboxList).
description
stringSecondary text below the label.
endContent
ReactNodeContent rendered after the label area.
isDisabled
boolean (default: false)Whether this individual item is disabled.
isChecked
boolean | 'indeterminate'Direct checked state (standalone mode only).
onCheck
(checked: boolean) => voidDirect check handler (standalone mode only).

Examples

Common configurations, variations, and states.
CheckboxList — Select All With Indeterminate
A
CheckboxList — With End Content
Badges in the trailing slot show contextual info — like a price or status — next to each option without cluttering the label, so users can compare choices at a glance.