CheckboxInput
Checkbox input widget for capturing boolean values.
Signature
def CheckboxInput(
label: str,
key: str = None,
required: bool = True,
hint: str = None,
full_width: bool = False,
disabled: bool = False,
errors: Union[list, str] = None
)
Parameters
Name | Description | Type | Default |
---|---|---|---|
label (required) | Text label displayed next to the checkbox. | str | None |
key | Identifier for the widget, defaults to label if not provided. | str | None |
required | Whether the checkbox must be checked before proceeding. | bool | True |
hint | Help text displayed below the checkbox. | str | None |
full_width | Whether the widget should take up the full width of its container. | bool | False |
disabled | Whether the checkbox is non-interactive. | bool | False |
errors | Pre-defined validation error messages to display. | Union[list, str] | None |