API documentation for Checkbox component
Defines valid properties in Checkbox component.
Defines valid state in Checkbox component.
name | type | default | description |
---|---|---|---|
checked | boolean | null | The checked state of the useCheckbox. |
indeterminate | boolean | null | The indeterminate state of the useCheckbox. |
Defines the methods and properties exposed by Checkbox component.
Event fired when the checkbox's checked state changes.
name | type | description |
---|---|---|
value | unknown | Value of the checkbox. |
originalEvent | ChangeEvent | The original event that triggered the change. |
checked | boolean | The checked state of the checkbox. |
Defines passthrough(pt) options of Checkbox component.
Instance of Checkbox component.
values |
---|
ComponentInstance<CheckboxProps, CheckboxState, CheckboxExposes> |
Defines valid properties in CheckboxGroup component.
Defines valid state in CheckboxGroup component.
Defines the methods and properties exposed by CheckboxGroup component.
name | type | default | description |
---|---|---|---|
state | CheckboxGroupState | null | The state of the checkbox group. |
updateChange | (event: CheckboxGroupUpdateChangeEvent) => void | null | Updates the value of the checkbox group. |
Event fired when the checkbox group's value changes.
Used to update the checkbox group value.
name | type | description |
---|---|---|
value | unknown | Value of the checkbox. |
originalEvent | ChangeEvent | The original event that triggered the change. |
checked | boolean | The checked state of the checkbox. |
Defines passthrough(pt) options of Checkbox component.
name | type | default | description |
---|---|---|---|
root | CheckboxGroupPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Instance of CheckboxGroup component.
values |
---|
ComponentInstance<CheckboxGroupProps, CheckboxGroupState, CheckboxGroupExposes> |
Defines valid properties in useCheckbox.
Defines valid state in useCheckbox.
name | type | default | description |
---|---|---|---|
checked | boolean | null | The checked state of the useCheckbox. |
indeterminate | boolean | null | The indeterminate state of the useCheckbox. |
Defines the methods and properties exposed by useCheckbox.
name | type | default | description |
---|---|---|---|
state | useCheckboxState | null | The state of the useCheckbox. |
onChange | (event: useCheckboxChangeEvent) => void | null | Callback fired when the useCheckbox's checked state changes. |
Event fired when the checkbox's checked state changes.
name | type | description |
---|---|---|
originalEvent | E | The original event that triggered the change. |
checked | boolean | The checked state of the checkbox. |
Instance of useCheckbox headless.
values |
---|
HeadlessInstance<useCheckboxProps, useCheckboxState, useCheckboxExposes> |