Files
new-website-jekyll-theme/_includes/forms/input.html
T
2026-06-03 22:47:16 -03:00

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 }}
>