input

The styling for the file upload button is done via elements/button.

Information

Folder
src/components/elements/file-upload/input

Files

Schema
Mocks
Template
// src/components/elements/file-upload/input/input.twig

<input{{ attributes }}
	{% if id %}id="{{ id }}"{% endif %}
	{% if name %}name="{{ name }}"{% endif %}
	class="FileUploadInput {{ classes|join(" ") }}"
	type="file"
	{% if disabled %} disabled{% endif %}
	{% if required %} required{% endif %}
	{% if invalid %} aria-invalid="true"{% endif %}
	{% if value %}value="{{ value }}"{% endif %}
>

Variants

Empty
Open

Empty mock data

Raw
Resolved
Invalid
Open

Invalid mock data

Raw
Resolved
Disabled
Open

Disabled mock data

Raw
Resolved
Invalid and disabled
Open

Invalid and disabled mock data

Raw
Resolved