Get notified about new features and updates.
Installation
templui add checkboxLoad the script once in your layout:
<head>
@checkbox.Script()
</head>Examples
Form
Choose all areas that interest you.
Please select at least one interest.
Indeterminate
API Reference
Checkbox
Control that allows selecting multiple options from a list.
| Name | Type | Default |
|---|---|---|
Unique identifier for the checkbox element. | | - |
Additional CSS classes to apply to the checkbox. | | - |
Additional HTML attributes to apply to the checkbox element. | | - |
Name attribute for the form input. | | - |
Value attribute for the checkbox input. | | - |
Whether the checkbox is disabled and non-interactive. | | |
Whether the checkbox is initially checked. | | |
Group name to link checkboxes together. When set, checkboxes with the same group name will be connected for parent-child behavior. | | - |
Marks this checkbox as the parent of its group. The parent checkbox automatically toggles all children and shows an indeterminate state when some children are checked. | | |
Custom icon component to use instead of the default checkmark. | | - |