<!-- BUTTON-GROUP Component -->
<div class="kx-btngroup kx-flex kx-flex-wrap kx-justify-content-center " role="group" aria-label="Aria label example">
<!-- BUTTON Component -->
<button class="kx-btn kx-btn--skin-secondary kx-btn--size-base">
<span class="kx-btn__inner">
<span class="kx-btn__txt">First</span>
</span>
</button>
<!-- BUTTON Component -->
<button class="kx-btn kx-btn--skin-secondary kx-btn--size-base">
<span class="kx-btn__inner">
<span class="kx-btn__txt">Second</span>
</span>
</button>
<!-- BUTTON Component -->
<button class="kx-btn kx-btn--skin-secondary kx-btn--size-base">
<span class="kx-btn__inner">
<span class="kx-btn__txt">Third</span>
</span>
</button>
</div>
<!-- BUTTON-GROUP Component -->
<div class="kx-btngroup kx-flex kx-flex-wrap {% if stretch -%} {{ stretch }} {% endif -%} {% if spacing -%} {{ spacing }} {% endif -%} {% for class in align %} {{ class }}{% endfor %} {% for class in classes %} {{ class }}{% endfor %}" role="group" aria-label="{{ ariaLabel }}">
{%- for button in buttons -%}
{% if button.context.items -%}
{% render '@dropdown', button.context %}
{% else -%}
{% render '@button', button.context %}
{% endif -%}
{% endfor -%}
</div>
{
"stretch": null,
"align": [
"kx-justify-content-center"
],
"ariaLabel": "Aria label example",
"buttons": [
{
"context": {
"text": "First",
"skin": "secondary",
"size": "base"
}
},
{
"context": {
"text": "Second",
"skin": "secondary",
"size": "base"
}
},
{
"context": {
"text": "Third",
"skin": "secondary",
"size": "base"
}
}
],
"classes": null,
"spacing": null
}
- Handle: @button-group--btn-group-align-center
- Variants (7): Default , Spacing , Justify Left , Justify Center , Justify End , Stretched , Mixed buttons
- Preview:
- Filesystem Path: src\components\button-group\button-group.njk
- References (2): @dropdown, @button
There are no notes for this item.