Checkbox
A control that allows the user to toggle between checked and not checked.
Default
The standard checkbox component.
checkbox-example-default.ts
Disabled
Checkboxes in a disabled state.
checkbox-example-disabled.ts
With Form
Integration with ngModel for reactive state management.
Checked state: false
checkbox-example-form.ts
Complex Layouts & Colors
Using checkboxes inside cards and applying custom Tailwind CSS colors.
Notifications
Manage your alert preferences.
Receive daily updates via email.
Get instant text messages for critical events.
Favorite Colors
Custom styled checkboxes.
checkbox-example-cards.ts
Installation & Usage
Installation
Imports
Basic Skeleton
API Reference
Brain API
The brain directives provide the functional logic and accessibility for the checkbox.
| Directive | Selector | Inputs / Outputs |
|---|---|---|
| BrnCheckbox | [brnCheckbox] |
|
Helm API
The helm components provide the default spartan/ui styling.
| Component / Directive | Selector | Description |
|---|---|---|
| HlmCheckbox | hlm-checkbox | The main styled checkbox component. |
| HlmCheckboxCheckIcon | hlm-checkbox-check-icon | The icon displayed when checked. |