Skip to main content

Checkbox

Select multiple options from a list, built on Base UI.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
labelstring-
descriptionstring-
iconReactNode-A glyph between the box and the label.
A glyph between the box and the label.
asideReactNode-Quiet text at the far end of the row, such as a size or a count.
Quiet text at the far end of the row, such as a size or a count.
rowbooleanfalseDraws the checkbox as a full-width row that lifts into a raised chip while ticked, for a list in a Checkbox Group.
Draws the checkbox as a full-width row that lifts into a raised chip while ticked, for a list in a Checkbox Group.
defaultCheckedbooleanfalse
checkedboolean-
onCheckedChange(checked: boolean) => void-
indeterminatebooleanfalse
sizesm | md | lgmd
shapenone | roundedrounded
disabledbooleanfalseBlocks interaction and dims the whole row, label included.
Blocks interaction and dims the whole row, label included.
readOnlybooleanfalse
animatedbooleantrue
classNamestring-
focusboolean | stringtrue