Skip to content

Checkbox

component

A checkbox, drawn by phil-ux.

Preview

Light

Code
<twig:Label><twig:Checkbox name="terms" /> I accept</twig:Label>

Dark

Code
<twig:Label><twig:Checkbox name="terms" /> I accept</twig:Label>

Installation

php bin/console ux:install checkbox --kit=github.com/parler-haut-interagir-librement/ux-kit

Accessibility

Name it with a Label.

Files to copy

templates/components/Checkbox.html.twig
<input type="checkbox" data-slot="checkbox"{{ attributes }}>