Checkable
A controlled checkbox/radio/switch/toggle primitive.
Props
| Prop | Type | Required |
|---|---|---|
accessibilityHint | string | No |
enabled | boolean | No |
label | string | Yes |
role | string | No |
semantics | string | No |
validationMessage | nullableString | No |
value | any | Yes |
Types describe evaluated values. Literal native attributes use the declared decoder; use bind-* for expressions. any still has the semantic constraints listed below. Common document attributes (class, state, show, etc.) are separate from props.
Example
<Column state="{checked:false}"><Checkable label="Accept" model="checked" role="checkbox" /></Column>
Defaults, values, and validation
role accepts checkbox/radio/switch/toggle. value accepts boolean or null for mixed state; not every role presents mixed state identically.
Unknown props, wrong types, missing required props, and unsupported child structure fail validation. Use attributes for evaluated input and diagnostics for recovery.
Events
on-change
change carries {value: ...} with the controlled value. See this primitive’s value rules; model assigns this field before the explicit handler.
Local commands
focus