label
Information
- Folder
src/components/elements/form-element/label
Files
Schema
$schema: http://json-schema.org/draft-07/schema#
$id: /elements/form-element/label
additionalProperties: false
required:
- title
properties:
attributes:
type: string
classes:
type: array
items:
type: string
for:
type: string
required:
type: boolean
title:
type: string
Mocks
title: Input label
for: foo
$variants:
- $name: Required
required: true
Template
<label{{ attributes }} for="{{ for }}" class="FormElementLabel {{ classes|join(" ") }}{% if required %} is-required{% endif %}">{{ title }}</label>
Variants