Checkbox
Checkboxes are used to select multiple options from a list of options.
<ui-checkbox name="terms" label="I agree to have fun!" />
With descriptions
Checkboxes can have descriptions below their labels.
<ui-checkbox
name="terms"
label="I Agree"
description="...that if I wrastle this here gator I won't sue nobody."
/>
Checkbox group
Organize a list of related checkboxes vertically.
Hot Tip!
When using checkbox groups, add your name
or v-model
to the group element instead of the individual checkboxes

<ui-checkbox-group name="meals">
<ui-heading text="Which meals do you know about?" />
<ui-checkbox value="Breakfast" />
<ui-checkbox value="Second breakfast" />
<ui-checkbox value="Elevensies" />
<ui-checkbox value="Luncheon" />
<ui-checkbox value="Afternoon tea" />
<ui-checkbox value="Dinner" />
<ui-checkbox value="Supper" />
</ui-checkbox-group>
Inline
You can also arrange your checkboxes inline, horizontally.
<ui-checkbox-group name="books" :inline="true" class="flex justify-center">
<ui-checkbox value="The Hobbit" />
<ui-checkbox value="Lord of the Rings" />
<ui-checkbox value="The Silmarillion" />
</ui-checkbox-group>
Docs Feedback
Submit improvements, related content, or suggestions through Github.
Betterify this page