Skip to main content

Checkbox

Renders an <input type="checkbox"> element.

When to use a single checkbox

There are only 2 options: yes/no. It feels like agreeing to something. Checking the box doesn’t save; there is a submit button further down.

Example

<Form as |form|>
<form.Field @name="approved" @title="Approved" as |field|>
<field.Checkbox />
</form.Field>
</Form>