input
Information
- Folder
src/components/elements/input
Files
Schema
Mocks
Template
// src/components/elements/input/input.twig
<input{{ attributes }}
{% if id %}id="{{ id }}"{% endif %}
{% if name %}name="{{ name }}"{% endif %}
{% if value %}value="{{ value }}"{% endif %}
class="Input {{ classes|join(" ") }}"
type="{{ type|default("text") }}"
{% if disabled %} disabled{% endif %}
{% if required %} required{% endif %}
{% if placeholder %} placeholder="{{ placeholder }}"{% endif %}
{% if invalid %} aria-invalid="true"{% endif %}
>