Checkbox Row
CheckboxRow: a UI SDK Checkbox with its label, an optional description and a trailing slot (a badge, a fingerprint, a menu), wired by a UI SDK Field. The whole label toggles it; disabled takes a reason, shown under the label and describing the checkbox. 44px rows on touch, at both densities.
Example
Sent on Monday mornings, in your time zone.
Large uploads wait for Wi-Fi.Your organization turned this off.
Installation
Usage
A checkbox with its label, a description and something at the end of the row, like a badge or a fingerprint. Use it for lists of choices that need a word of explanation, or a reason when they're off.
API reference
CheckboxRow
| Prop | Type | Default |
|---|---|---|
labelrequiredNames the checkbox; pressing it toggles the checkbox. | ReactNode | – |
descriptionUnder the label, describing the checkbox. | ReactNode | – |
trailingAt the end of the row, like a badge, a fingerprint or a menu. | ReactNode | – |
disabled | CheckboxRowDisabled | – |
classNameOn the row, or a function of the row's state; the checkbox's own props go to the checkbox. | ComponentProps<typeof FieldPrimitive>["className"] | – |
Also takes Checkbox except children, disabled, className.
Other exports
type CheckboxRowDisabledtype CheckboxRowPropsAccessibility
- The label names the checkbox and toggles it; the description and a disabled row's reason describe it.
- Rows grow to 44px on touch, and the checkbox keeps its 44px hit area.
Agent actions
The checkbox is a UI SDK part: agents call setChecked(true | false) on it by its label.
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.