{{> docs-start pageTitle="Checkbox" pageDescription="Custom styled checkbox inputs" }}

Examples

{{#> example-block title="Default" description="Basic checkbox with label." id="checkbox-default" language="html" }} {{> checkbox/examples/default}} {{/example-block}} {{#> example-block title="Sizes" description="Small, default, and large checkbox sizes." id="checkbox-sizes" language="html" }} {{> checkbox/examples/sizes}} {{/example-block}} {{#> example-block title="Color Variants" description="Semantic color options for checkboxes." id="checkbox-colors" language="html" }} {{> checkbox/examples/colors}} {{/example-block}} {{#> example-block title="With Description" description="Checkbox with supporting text." id="checkbox-description" language="html" }} {{> checkbox/examples/description}} {{/example-block}} {{#> example-block title="Card Style" description="Card-style checkbox selection." id="checkbox-card" language="html" }} {{> checkbox/examples/card}} {{/example-block}}

Usage

Import the checkbox component:

{{> code-block language="javascript" id="checkbox-usage-code" code="import { initCheckbox } from '../components/ui/checkbox'; initCheckbox();" }}

Available Classes

.checkbox
.checkbox-wrapper
.checkbox-label
.checkbox-description
.checkbox-sm
.checkbox-lg
.checkbox-success
.checkbox-group
.checkbox-card
{{> docs-end}}