Files
2026-08-11 15:29:46 -03:00

46 lines
730 B
HTML

---
id:
type: 'string'
class:
type: 'string'
default: ''
value:
type: 'string'
item:
type: 'string'
required:
type: 'bool'
default: false
autofocus:
type: 'bool'
default: false
name:
type: 'string'
default: ''
aria_label:
type: 'string'
default: ''
attributes:
type: 'string'
default: ''
---
{%- assign attributes = attributes | append: ' ' | append: 'switch' -%}
<div class="form-check form-switch">
{%
render 'forms/input.html',
type: 'checkbox',
id:,
class: 'form-check-input',
required:,
autofocus:,
name:,
value:,
aria_label:,
attributes:
%}
{%- block 'forms/label.html', class: 'form-check-label', id: -%}
{{ item }}
{%- endblock -%}
</div>