input
Information
- Folder
src/components/elements/form-elements/input
Files
Schema
Mocks
Template
// src/components/elements/form-elements/input/input.twig
{% set additional_attributes_string %}
{% for attribute in additional_attributes %}
{{ attribute[0] }}="{{ attribute[1] }}"
{% endfor %}
{% endset %}
{% set input_type = type|default("text") %}
<input id="{{ id }}" name="{{ name }}" type="{{ input_type }}" class="Input Input--{{ input_type }} {{ classes|join(" ") }}" {% if invalid %}aria-invalid="true"{% endif %} {{ additional_attributes_string|raw }}>
Error: schema is invalid: data/properties must be object