47 lines
728 B
HTML
47 lines
728 B
HTML
---
|
|
id:
|
|
type: 'string'
|
|
type:
|
|
type: 'string'
|
|
default: 'text'
|
|
class:
|
|
type: 'string'
|
|
default: ''
|
|
aria-label:
|
|
type: 'string'
|
|
value:
|
|
type: 'string'
|
|
default: ''
|
|
name:
|
|
type: 'bool'
|
|
default: false
|
|
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 }}"
|
|
{% if name %}
|
|
name="{{id | escape_once}}"
|
|
{% endif %}
|
|
{% if required %}
|
|
required
|
|
{% endif %}
|
|
{% if autofocus %}
|
|
autofocus
|
|
{% endif %}
|
|
{% if value %}
|
|
value="{{ value }}"
|
|
{% endif %}
|
|
{{ attributes | escape_once }}
|
|
>
|