Checkbox
Overview
A checkbox serves as a toggle for a boolean value.

Properties
Name
Type
Description
name
string
Component name
value
boolean
Current component value
valid
boolean
Indicates if the component is valid
validating
boolean
Indicates if the component is validating
Methods
Name
Parameters
Returns
Description
setValue
value: boolean
void
Set component value
setDisabled
disabled: boolean
void
Disable or enable the component
reset
–
void
Reset component to the initial value
resetValidation
–
void
Clear validation errors
setErrors
errors: string | string[] | null
void
Mark the component as invalid and display errors
Triggers
Name
Description
On Change
Triggered when the component's state changes
On Focus
Triggered when the component is in focus
On Blur
Triggered when the component loses focus
On Init
Triggered when the component is initialized
Last updated
Was this helpful?