Checkbox
UI SDK Checkbox and CheckboxGroup: checked, unchecked and indeterminate, labelled by Field.
Example
Closed more than 30 days ago.
checkbox-demo.tsxCopy code
Installation
Copy code
Brings alongfield
npm packages
lucide-reactUsage
ImportCopy code
API reference
Checkbox
CheckboxIndicator
CheckboxGroup
Other exports
createCheckboxControllercreateCheckboxGroupControllertype CheckboxControllertype CheckboxStatetype CheckedStateAccessibility
- Checked, unchecked and indeterminate, with a 3:1 edge from input-strong.
- Grows to a 44px hit area on touch.
Agent actions
Agents call setChecked(true | false); other values are refused.
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.