<div class="textfield filefield
">
<label class="textfield__label filefield__label " for="file1">
Upload file
</label>
<div class="textfield__inner">
<input class="textfield__input" type="file" id="file1" name="fileupload">
</div>
</div>
{% set BEM -%}
filefield
{% if modifier %} {{ modifier }}{% endif %}
{%- if class %} {{ class }}{% endif %}
{% endset %}
{% include '@textfield' with {
data: data,
type: 'file',
class: BEM,
labelClass: 'filefield__label'
} %}
{
"language": "en-US",
"data": {
"label": "Upload file",
"id": "file1",
"name": "fileupload"
}
}
.filefield__label {
font-size: 12px;
top: 0;
}
import '../textfield/textfield';
import './filefield.scss';
<div class="textfield filefield
">
<label class="textfield__label filefield__label " for="file1">
Upload file
</label>
<div class="textfield__inner">
<input class="textfield__input" type="file" id="file1" name="fileupload" multiple>
</div>
</div>
{% set BEM -%}
filefield
{% if modifier %} {{ modifier }}{% endif %}
{%- if class %} {{ class }}{% endif %}
{% endset %}
{% include '@textfield' with {
data: data,
type: 'file',
class: BEM,
labelClass: 'filefield__label'
} %}
{
"language": "en-US",
"data": {
"label": "Upload file",
"id": "file1",
"name": "fileupload",
"attributes": "multiple"
}
}
.filefield__label {
font-size: 12px;
top: 0;
}
import '../textfield/textfield';
import './filefield.scss';
<div class="textfield filefield
is-invalid">
<label class="textfield__label filefield__label " for="file1">
Upload file
</label>
<div class="textfield__inner">
<input class="textfield__input" type="file" id="file1" name="fileupload">
</div>
<div class="textfield__error">
Please check your input
</div>
</div>
{% set BEM -%}
filefield
{% if modifier %} {{ modifier }}{% endif %}
{%- if class %} {{ class }}{% endif %}
{% endset %}
{% include '@textfield' with {
data: data,
type: 'file',
class: BEM,
labelClass: 'filefield__label'
} %}
{
"language": "en-US",
"data": {
"label": "Upload file",
"id": "file1",
"name": "fileupload",
"isInvalid": true,
"error": "Please check your input"
}
}
.filefield__label {
font-size: 12px;
top: 0;
}
import '../textfield/textfield';
import './filefield.scss';
<div class="textfield filefield
is-disabled">
<label class="textfield__label filefield__label " for="file1">
Upload file
</label>
<div class="textfield__inner">
<input class="textfield__input" type="file" id="file1" name="fileupload" disabled>
</div>
</div>
{% set BEM -%}
filefield
{% if modifier %} {{ modifier }}{% endif %}
{%- if class %} {{ class }}{% endif %}
{% endset %}
{% include '@textfield' with {
data: data,
type: 'file',
class: BEM,
labelClass: 'filefield__label'
} %}
{
"language": "en-US",
"data": {
"label": "Upload file",
"id": "file1",
"name": "fileupload",
"isDisabled": true
}
}
.filefield__label {
font-size: 12px;
top: 0;
}
import '../textfield/textfield';
import './filefield.scss';