Raxol.UI.Components.Input.Checkbox (Raxol v0.2.0)
View SourceCheckbox component for toggling boolean values.
This component provides a selectable checkbox with customizable appearance and behavior.
Summary
Functions
Creates a new checkbox component with the given options.
Types
Functions
Creates a new checkbox component with the given options.
Options
:id
- Unique identifier for the checkbox:label
- Text to display next to the checkbox:checked
- Whether the checkbox is checked:on_change
- Function to call when the checkbox state changes:disabled
- Whether the checkbox is disabled:theme
- Theme overrides for the checkbox:tooltip
- Optional tooltip text:required
- Whether the checkbox is required:aria_label
- Accessibility label
Returns
A new checkbox component struct.