layout-button

Information

Folder
src/components/patterns/form/layout/layout-button

Files

Schema
Mocks
Template
// src/components/patterns/form/layout/layout-button/layout-button.html.twig

{% set classes = [
  has_loading ? 'js-FskButton' : ''
] %}

{% if icon %}
  {% set icon_html %}
    {% include "@elements/icon/icon.html.twig" with {name: icon} only %}
  {% endset %}
{% endif %}

<div class="LayoutButton {% if mutation %} LayoutButton--{{ mutation }}{% endif %}">
  <div class="LayoutButton-wrapper">
    {% include "@fsk/form/form-element/input/input--submit/input--submit.html.twig" with {
      attributes: attributes.addClass(classes),
      modifiers: button_modifiers,
      icon: icon_html
    } only %}
    {% if children %}
      {{ children }}
    {% endif %}
    {% if has_loading %}
      {% include "@elements/loading-animation/loading-animation.html.twig" with {
        text: "Ihre Daten werden übertragen. <br>Bitte haben Sie einen Moment Geduld.",
        class: "is-hidden"
      } only %}
    {% endif %}
  </div>
</div>

Variants

default
Open

default mock data

Raw
Resolved
default with loading
Open

default with loading mock data

Raw
Resolved
as link
Open

as link mock data

Raw
Resolved
as donation
Open

as donation mock data

Raw
Resolved