Raxol.UI.Components.Input.Checkbox (Raxol v0.4.0)
View SourceCheckbox component for toggling boolean values.
This component provides a selectable checkbox with customizable appearance and behavior. Fully supports style and theme props (with correct merging/precedence), implements robust lifecycle hooks, and supports accessibility/extra props.
Summary
Functions
Initializes the Checkbox component state from the given props.
Mounts the Checkbox component. Performs any setup needed after initialization.
Creates a new checkbox component with the given options.
See init/1
for details.
Renders the Checkbox component using the current state and context.
Unmounts the Checkbox component, performing any necessary cleanup.
Updates the Checkbox component state in response to unknown messages (ignored).
Types
Functions
Initializes the Checkbox component state from the given props.
Mounts the Checkbox component. Performs any setup needed after initialization.
Creates a new checkbox component with the given options.
See init/1
for details.
Renders the Checkbox component using the current state and context.
Unmounts the Checkbox component, performing any necessary cleanup.
Updates the Checkbox component state in response to unknown messages (ignored).