54 lines
969 B
HTML
54 lines
969 B
HTML
---
|
|
id:
|
|
type: 'string'
|
|
type:
|
|
type: 'string'
|
|
default: 'text'
|
|
class:
|
|
type: 'string'
|
|
default: ''
|
|
aria_label:
|
|
type: 'string'
|
|
default: ''
|
|
value:
|
|
type: 'string'
|
|
default: ''
|
|
name:
|
|
type: 'string'
|
|
default: ''
|
|
placeholder:
|
|
type: 'string'
|
|
default: ''
|
|
required:
|
|
type: 'bool'
|
|
default: false
|
|
autofocus:
|
|
type: 'bool'
|
|
default: false
|
|
attributes:
|
|
type: 'string'
|
|
default: ''
|
|
---
|
|
<input
|
|
id="{{ id | escape_once }}"
|
|
type="{{ type | escape_once }}"
|
|
class="{{ class | escape_once }}"
|
|
aria-label="{{ aria_label | escape_once }}"
|
|
{% unless name == empty %}
|
|
name="{{ name | default: id | escape_once }}"
|
|
{% endunless %}
|
|
{% unless value == empty %}
|
|
value="{{ value | escape_once }}"
|
|
{% endunless %}
|
|
{% unless placeholder == empty %}
|
|
placeholder="{{ placeholder | escape_once }}"
|
|
{% endunless %}
|
|
{% if required %}
|
|
required
|
|
{% endif %}
|
|
{% if autofocus %}
|
|
autofocus
|
|
{% endif %}
|
|
{{ attributes | escape_once }}
|
|
>
|