Skip to main content

Checkbox

Styled native checkbox with an associated text label.

{% include components/checkbox.html
   name="terms"
   value="accepted"
   label="I agree to the terms"
   required=true
%}

Parameters

Parameter Type Default Description
name string — Form field name
id string name Control id
value string on Submitted value
label string — Visible label
checked / required / disabled boolean false Native checkbox states
class string — Additional classes on the label