input

The following custom properties can be overwritten for the default state:

The following states are available:

For each state the following custom properties can be overwritten:

Information

Folder
src/components/fsk/form/form-element/input

Files

Schema
Mocks
Template
// src/components/fsk/form/form-element/input/input.html.twig

<input{{ attributes ? attributes|without("id", "class", "type", "disabled", "required") : "" }}
  {% if attributes.id %}id="{{ attributes.id }}"{% endif %}
  class="FskInput {{ attributes.class }}"
  type="{{ attributes.type|default("text") }}"
  {% if attributes.disabled %} disabled{% endif %}
  {% if attributes.required %} required{% endif %}
  {% if "error" in attributes.class %} aria-invalid="true"{% endif %}
>{{ children }}

Variants

default
Open

default mock data

Raw
Resolved
Invalid
Open

Invalid mock data

Raw
Resolved
Filled out
Open

Filled out mock data

Raw
Resolved
Disabled
Open

Disabled mock data

Raw
Resolved
Invalid and filled-out
Open

Invalid and filled-out mock data

Raw
Resolved
Invalid and disabled
Open

Invalid and disabled mock data

Raw
Resolved
Filled out and disabled
Open

Filled out and disabled mock data

Raw
Resolved
Filled out and disabled and invalid
Open

Filled out and disabled and invalid mock data

Raw
Resolved