input--checkbox
This component only contains an input of type checkbox, which is visually hidden, as the styling will be done by the corresponding label. This component can therefore not be used on its own, but should always be used via form/form-element.
Information
- Folder
src/components/fsk/form/form-element/input/input--checkbox
Files
Schema
Mocks
Template
// src/components/fsk/form/form-element/input/input--checkbox/input--checkbox.html.twig
{% include "@fsk/form/form-element/input/_option/_option.html.twig" with {
attributes: attributes,
checked: attributes.checked ?? checked,
children: children,
class: attributes.class ?? class,
disabled: attributes.disabled ?? disabled,
id: attributes.id ?? id,
required: attributes.required ?? required,
type: "checkbox",
} only %}