Button

Een icon button moet in de markup eerst het label en dan het icoon hebben staan.

<button type="button" class="btn btn-default"><span></span></button>
<button type="{{ type }}"
  {{- attributes(
    [roleDescription, 'aria-roledescription', roleDescription],
    [disabled, 'disabled'],
    [ariaDescribedby, 'aria-describedby', ariaDescribedby]
  ) }}
  {{ className('btn', [modifier, 'btn-' + modifier]) -}}
>
  {%- if icon and not(iconOnly) %}{% render '@icon', {icon: icon} -%}{% endif -%}
  <span {{ className([iconOnly, 'sr-only']) }}>{{ label }}</span>
  {%- if iconAfter or iconOnly %}{% render '@icon', {icon: (iconAfter or icon)} -%}{% endif -%}
</button>
type: button
modifier: default