--- title: Checkbox layout: docs theme: library doc-tab: form doc-subtab: checkbox breadcrumb: - home - documentation - form - form-checkbox meta: colors: false sizes: false variables: false --- {% capture checkbox_example %} {% endcapture %} {% capture checkbox_link_example %} {% endcapture %} {% capture checkbox_disabled_example %} {% endcapture %} {% capture list_of_checkboxes %}
{% endcapture %}

The checkbox class is a simple wrapper around the <input type="checkbox"> HTML element. It is intentionally not styled, to preserve cross-browser compatibility and the user experience.

{{ checkbox_example }}
{% highlight html -%} {{- checkbox_example -}} {%- endhighlight %}

You can add links to your checkbox, or even disable it.

{{ checkbox_link_example }}
{% highlight html -%} {{- checkbox_link_example -}} {%- endhighlight %}
{{ checkbox_disabled_example }}
{% highlight html -%} {{- checkbox_disabled_example -}} {%- endhighlight %}
{% include docs/elements/anchor.html name="List of Checkboxes" %}

If you want to list several checkbox elements, wrap them in a <div class="checkboxes"> element:

{{- list_of_checkboxes -}}
{% highlight html -%} {{- list_of_checkboxes -}} {%- endhighlight %}