input--textfield
This component only contains an input of type text and no 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--textfield
Files
Schema
Mocks
Template
// src/components/fsk/form/form-element/input/input--textfield/input--textfield.html.twig
<input{{ attributes ? attributes|without("id", "class", "type", "disabled", "required") : "" }}
{% if attributes.id %}id="{{ attributes.id }}"{% endif %}
class="FskInput {{ attributes.class }}"
type="text"
{% if attributes.disabled %} disabled{% endif %}
{% if attributes.required %} required{% endif %}
{% if "error" in attributes.class %} aria-invalid="true"{% endif %}
>{{ children }}