option
This is a shared component used by form/form-elements/input/input--checkbox and form/form-elements/input/input--radio.
It should not be used directly.
Information
- Folder
src/components/elements/form-element/option
Files
Schema
Mocks
Template
// src/components/elements/form-element/option/option.twig
<input{{ attributes }}
id="{{ id }}"
value="{{ value }}"
name="{{ name }}"
class="{{ classes|join(" ") }}"
type="{{ type }}"
{% if disabled %}disabled{% endif %}
{% if checked %}checked{% endif %}
{% if required %}required{% endif %}
{% if invalid %}aria-invalid="true"{% endif %}
>