Button
Buttons of type basic
The basic button has no background or border. The text color is determined by the color property. This button also lacks padding left and right.
<a id="62bed2b23c2a5" class="c-button c-button__basic c-button__basic--primary c-button--md" href="https://helsingborg.se" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" data-uid="62bed2b23c29e">
<span class="c-button__label">
<span class="c-button__label-icon c-button__label-icon--reverse">
<!-- icon.blade.php -->
<i id="62bed2b23c385" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23c37f">
home
</i>
</span>
<span class="c-button__label-text c-button__label-text--reverse">
Primary (href)
</span>
</span>
</a>
<button id="62bed2b23c408" class="c-button c-button__basic c-button__basic--secondary c-button--md" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23c403">
<span class="c-button__label">
<span class="c-button__label-text ">
Secondary
</span>
</span>
</button>
<button id="62bed2b23c44a" class="c-button c-button__basic c-button__basic--default c-button--md" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23c447">
<span class="c-button__label">
<span class="c-button__label-text ">
Default
</span>
</span>
</button>
@button([
'text' => 'Primary (href)',
'color' => 'primary',
'style' => 'basic',
'href' => 'https://helsingborg.se',
'icon' => 'home',
'reversePositions' => 'true'
])
@endbutton
@button([
'text' => 'Secondary',
'color' => 'secondary',
'style' => 'basic'
])
@endbutton
@button([
'text' => 'Default',
'color' => 'default',
'style' => 'basic'
])
@endbutton
Buttons of type outlined
Outlined buttons consist of a border colored by the color property. The content(icon/text) will also be colored by the color property.
<a id="62bed2b23c770" class="c-button c-button__outlined c-button__outlined--primary c-button--md" href="https://helsingborg.se" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" data-uid="62bed2b23c76a">
<span class="c-button__label">
<span class="c-button__label-text ">
Primary outlined
</span>
</span>
</a>
<button id="62bed2b23c7bc" class="c-button c-button__outlined c-button__outlined--secondary c-button--md" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23c7b9">
<span class="c-button__label">
<span class="c-button__label-text ">
Secondary outlined
</span>
</span>
</button>
<button id="62bed2b23c80c" class="c-button c-button__outlined c-button__outlined--default c-button--md" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23c809">
<span class="c-button__label">
<span class="c-button__label-text ">
Default outlined
</span>
</span>
</button>
@button([
'text' => 'Primary outlined',
'style' => 'outlined',
'color' => 'primary',
'href' => 'https://helsingborg.se'
])
@endbutton
@button([
'text' => 'Secondary outlined',
'color' => 'secondary',
'style' => 'outlined'
])
@endbutton
@button([
'text' => 'Default outlined',
'color' => 'default',
'style' => 'outlined'
])
@endbutton
Type filled
Buttons with type filled and in three different colors.
<a id="62bed2b23cb5b" class="c-button c-button__filled c-button__filled--primary c-button--md" href="https://helsingborg.se" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" data-uid="62bed2b23cb54">
<span class="c-button__label">
<span class="c-button__label-text ">
Primary filled
</span>
</span>
</a>
<button id="62bed2b23cbea" class="c-button c-button__filled c-button__filled--secondary c-button--md" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23cbe3">
<span class="c-button__label">
<span class="c-button__label-text ">
Secondary filled
</span>
</span>
</button>
<button id="62bed2b23cc46" class="c-button c-button__filled c-button__filled--default c-button--md" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23cc43">
<span class="c-button__label">
<span class="c-button__label-text ">
Default filled
</span>
</span>
</button>
@button([
'text' => 'Primary filled',
'color' => 'primary',
'style' => 'filled',
'href' => 'https://helsingborg.se'
])
@endbutton
@button([
'text' => 'Secondary filled',
'color' => 'secondary',
'style' => 'filled'
])
@endbutton
@button([
'text' => 'Default filled',
'color' => 'default',
'style' => 'filled'
])
@endbutton
Buttons with both text and icon
You can choose to have both text and an icon. You can also switch positions of the text and icon by setting reverse to true.
<button id="62bed2b23d104" class="c-button c-button__filled c-button__filled--default c-button--md" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23d0f9">
<span class="c-button__label">
<span class="c-button__label-icon c-button__label-icon--reverse">
<!-- icon.blade.php -->
<i id="62bed2b23d173" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23d16e">
close
</i>
</span>
<span class="c-button__label-text c-button__label-text--reverse">
Reversed
</span>
</span>
</button>
<button id="62bed2b23d1be" class="c-button c-button__filled c-button__filled--default c-button--md" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23d1ba">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23d1f7" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23d1f4">
close
</i>
</span>
<span class="c-button__label-text ">
Not reversed
</span>
</span>
</button>
@button([
'icon' => 'close',
'reversePositions' => true,
'text' => 'Reversed',
'style' => 'filled'
])
@endbutton
@button([
'icon' => 'close',
'text' => 'Not reversed',
'style' => 'filled'
])
@endbutton
Button with icon only
This is a button with only an icon. This is the only button that will be rendered as a square.
Button with icon only - sizes
<button id="62bed2b23d7e7" class="c-button c-button__basic c-button__basic--primary c-button--md c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23d7e1">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23d85a" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23d856">
close
</i>
</span>
</span>
</button>
<button id="62bed2b23d89c" class="c-button c-button__filled c-button__filled--primary c-button--md c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23d898">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23d8d2" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23d8cf">
close
</i>
</span>
</span>
</button>
<button id="62bed2b23d90c" class="c-button c-button__outlined c-button__outlined--primary c-button--md c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23d909">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23d93e" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23d93c">
close
</i>
</span>
</span>
</button>
<button id="62bed2b23d975" class="c-button c-button__basic c-button__basic--secondary c-button--md c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23d972">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23d9a9" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23d9a6">
close
</i>
</span>
</span>
</button>
<button id="62bed2b23d9df" class="c-button c-button__filled c-button__filled--secondary c-button--md c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23d9dc">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23da10" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23da0d">
close
</i>
</span>
</span>
</button>
<button id="62bed2b23da45" class="c-button c-button__outlined c-button__outlined--secondary c-button--md c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23da42">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23da76" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23da73">
close
</i>
</span>
</span>
</button>
<button id="62bed2b23daab" class="c-button c-button__basic c-button__basic--default c-button--md c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23daa7">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23db02" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23dafe">
close
</i>
</span>
</span>
</button>
<button id="62bed2b23db40" class="c-button c-button__filled c-button__filled--default c-button--md c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23db3d">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23db72" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23db6f">
close
</i>
</span>
</span>
</button>
<button id="62bed2b23dba7" class="c-button c-button__outlined c-button__outlined--default c-button--md c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23dba4">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23dbd8" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23dbd5">
close
</i>
</span>
</span>
</button>
<!-- typography.blade.php -->
<p id="62bed2b23dc69" class="c-typography c-typography__variant--h3" data-uid="62bed2b23dc66">
Button with icon only - sizes
</p>
<button id="62bed2b23dccf" class="c-button c-button__filled c-button__filled--default c-button--sm c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23dccb">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23dd03" class="c-icon c-icon--size-sm material-icons" translate="no" role="img" alt="" data-uid="62bed2b23dd00">
close
</i>
</span>
</span>
</button>
<button id="62bed2b23dd39" class="c-button c-button__filled c-button__filled--default c-button--md c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23dd36">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23dd69" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23dd67">
close
</i>
</span>
</span>
</button>
<button id="62bed2b23dd9e" class="c-button c-button__filled c-button__filled--default c-button--lg c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23dd9b">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23ddd1" class="c-icon c-icon--size-lg material-icons" translate="no" role="img" alt="" data-uid="62bed2b23ddce">
close
</i>
</span>
</span>
</button>
<button id="62bed2b23de0a" class="c-button c-button__outlined c-button__outlined--default c-button--sm c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23de07">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23de39" class="c-icon c-icon--size-sm material-icons" translate="no" role="img" alt="" data-uid="62bed2b23de37">
close
</i>
</span>
</span>
</button>
<button id="62bed2b23de6d" class="c-button c-button__outlined c-button__outlined--default c-button--md c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23de6a">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23de9d" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23de9a">
close
</i>
</span>
</span>
</button>
<button id="62bed2b23ded2" class="c-button c-button__outlined c-button__outlined--default c-button--lg c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23decf">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23df01" class="c-icon c-icon--size-lg material-icons" translate="no" role="img" alt="" data-uid="62bed2b23defe">
close
</i>
</span>
</span>
</button>
<button id="62bed2b23df35" class="c-button c-button__basic c-button__basic--default c-button--sm c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23df32">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23df64" class="c-icon c-icon--size-sm material-icons" translate="no" role="img" alt="" data-uid="62bed2b23df62">
close
</i>
</span>
</span>
</button>
<button id="62bed2b23df99" class="c-button c-button__basic c-button__basic--default c-button--md c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23df96">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23dfc9" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23dfc7">
close
</i>
</span>
</span>
</button>
<button id="62bed2b23dffe" class="c-button c-button__basic c-button__basic--default c-button--lg c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23dffb">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23e02c" class="c-icon c-icon--size-lg material-icons" translate="no" role="img" alt="" data-uid="62bed2b23e029">
close
</i>
</span>
</span>
</button>
@button([
'style' => 'basic',
'icon' => 'close',
'size' => 'md',
'color' => 'primary',
])
@endbutton
@button([
'style' => 'filled',
'icon' => 'close',
'size' => 'md',
'color' => 'primary',
])
@endbutton
@button([
'style' => 'outlined',
'icon' => 'close',
'size' => 'md',
'color' => 'primary',
])
@endbutton
@button([
'style' => 'basic',
'icon' => 'close',
'size' => 'md',
'color' => 'secondary',
])
@endbutton
@button([
'style' => 'filled',
'icon' => 'close',
'size' => 'md',
'color' => 'secondary',
])
@endbutton
@button([
'style' => 'outlined',
'icon' => 'close',
'size' => 'md',
'color' => 'secondary',
])
@endbutton
@button([
'style' => 'basic',
'icon' => 'close',
'size' => 'md'
])
@endbutton
@button([
'style' => 'filled',
'icon' => 'close',
'size' => 'md'
])
@endbutton
@button([
'style' => 'outlined',
'icon' => 'close',
'size' => 'md'
])
@endbutton
@typography([
"variant" => "h3"
])
Button with icon only - sizes
@endtypography
@button([
'style' => 'filled',
'icon' => 'close',
'size' => 'sm'
])
@endbutton
@button([
'style' => 'filled',
'icon' => 'close',
'size' => 'md'
])
@endbutton
@button([
'style' => 'filled',
'icon' => 'close',
'size' => 'lg'
])
@endbutton
@button([
'style' => 'outlined',
'icon' => 'close',
'size' => 'sm'
])
@endbutton
@button([
'style' => 'outlined',
'icon' => 'close',
'size' => 'md'
])
@endbutton
@button([
'style' => 'outlined',
'icon' => 'close',
'size' => 'lg'
])
@endbutton
@button([
'style' => 'basic',
'icon' => 'close',
'size' => 'sm'
])
@endbutton
@button([
'style' => 'basic',
'icon' => 'close',
'size' => 'md'
])
@endbutton
@button([
'style' => 'basic',
'icon' => 'close',
'size' => 'lg'
])
@endbutton
Size
Different sizes ranging from sm to lg
<button id="62bed2b23e31b" class="c-button c-button__filled c-button__filled--secondary c-button--sm" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23e316">
<span class="c-button__label">
<span class="c-button__label-text ">
Size sm
</span>
</span>
</button>
<button id="62bed2b23e37f" class="c-button c-button__filled c-button__filled--secondary c-button--md" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23e37a">
<span class="c-button__label">
<span class="c-button__label-text ">
Size md
</span>
</span>
</button>
<button id="62bed2b23e3d8" class="c-button c-button__filled c-button__filled--secondary c-button--lg" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23e3d5">
<span class="c-button__label">
<span class="c-button__label-text ">
Size lg
</span>
</span>
</button>
@button([
'color' => 'secondary',
'size' => 'sm',
'text' => 'Size sm',
'background' => 'default'
])
@endbutton
@button([
'color' => 'secondary',
'size' => 'md',
'text' => 'Size md',
'background' => 'default'
])
@endbutton
@button([
'color' => 'secondary',
'size' => 'lg',
'text' => 'Size lg',
'background' => 'default'
])
@endbutton
Size with icons
Different sizes ranging from sm to lg with icons
<button id="62bed2b23e6d6" class="c-button c-button__filled c-button__filled--secondary c-button--sm" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23e6d1">
<span class="c-button__label">
<span class="c-button__label-icon c-button__label-icon--reverse">
<!-- icon.blade.php -->
<i id="62bed2b23e71e" class="c-icon c-icon--size-sm material-icons" translate="no" role="img" alt="" data-uid="62bed2b23e710">
home
</i>
</span>
<span class="c-button__label-text c-button__label-text--reverse">
Size sm
</span>
</span>
</button>
<button id="62bed2b23e798" class="c-button c-button__filled c-button__filled--secondary c-button--md" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23e793">
<span class="c-button__label">
<span class="c-button__label-icon c-button__label-icon--reverse">
<!-- icon.blade.php -->
<i id="62bed2b23e7d4" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23e7d1">
home
</i>
</span>
<span class="c-button__label-text c-button__label-text--reverse">
Size md
</span>
</span>
</button>
<button id="62bed2b23e80f" class="c-button c-button__filled c-button__filled--secondary c-button--lg" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23e80c">
<span class="c-button__label">
<span class="c-button__label-icon c-button__label-icon--reverse">
<!-- icon.blade.php -->
<i id="62bed2b23e840" class="c-icon c-icon--size-lg material-icons" translate="no" role="img" alt="" data-uid="62bed2b23e83d">
home
</i>
</span>
<span class="c-button__label-text c-button__label-text--reverse">
Size lg
</span>
</span>
</button>
@button([
'color' => 'secondary',
'size' => 'sm',
'text' => 'Size sm',
'background' => 'default',
'icon' => 'home',
'reversePositions' => 'true'
])
@endbutton
@button([
'color' => 'secondary',
'size' => 'md',
'text' => 'Size md',
'background' => 'default',
'icon' => 'home',
'reversePositions' => 'true'
])
@endbutton
@button([
'color' => 'secondary',
'size' => 'lg',
'text' => 'Size lg',
'background' => 'default',
'icon' => 'home',
'reversePositions' => 'true'
])
@endbutton
Disabled buttons
A button with the data-attribute disabled set to true will be greyed out and cursor set to not-allowed.
<button id="62bed2b23eb32" class="c-button c-button__basic c-button__basic--default c-button--md" href="" target="_top" js-toggle-trigger="" disabled="" type="button" aria-pressed="false" data-uid="62bed2b23eb2e">
<span class="c-button__label">
<span class="c-button__label-text ">
Disabled
</span>
</span>
</button>
<button id="62bed2b23eb7e" class="c-button c-button__basic c-button__basic--default c-button--md" href="" target="_top" js-toggle-trigger="" disabled="" type="button" aria-pressed="false" data-uid="62bed2b23eb70">
<span class="c-button__label">
<span class="c-button__label-text ">
Disabled outlined
</span>
</span>
</button>
<button id="62bed2b23ebf1" class="c-button c-button__basic c-button__basic--default c-button--md c-button--icon-only" href="" target="_top" disabled="" type="button" aria-pressed="false" data-uid="62bed2b23ebec">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23ec2e" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23ec2b">
close
</i>
</span>
</span>
</button>
@button([
'style' => 'basic',
'text' => 'Disabled',
'attributeList' => ['js-toggle-trigger' => '', 'disabled' => '']
])
@endbutton
@button([
'style' => 'basic',
'text' => 'Disabled outlined',
'attributeList' => ['js-toggle-trigger' => '', 'disabled' => '']
])
@endbutton
@button([
'style' => 'basic',
'icon' => 'close',
'attributeList' => ['disabled' => ''],
'size' => 'md'
])
@endbutton
Togglebuttons
When pressing a toggle-button the text color will go from black to primary to indicate it being toggled.
Basic buttons
Filled buttons
Outline buttons
<!-- typography.blade.php -->
<p id="62bed2b23f0fe" class="c-typography c-typography__variant--h3" data-uid="62bed2b23f0fa">
Basic buttons
</p>
<button id="62bed2b23f173" class="c-button c-button__basic c-button__basic--primary c-button--md c-button__toggle c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23f16f">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23f1b2" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23f1af">
format_align_left
</i>
</span>
</span>
</button>
<button id="62bed2b23f1ef" class="c-button c-button__basic c-button__basic--secondary c-button--md c-button__toggle c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23f1ec">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23f222" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23f220">
format_align_center
</i>
</span>
</span>
</button>
<button id="62bed2b23f25b" class="c-button c-button__basic c-button__basic--default c-button--md c-button__toggle c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23f258">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23f28c" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23f289">
format_align_right
</i>
</span>
</span>
</button>
<!-- typography.blade.php -->
<p id="62bed2b23f2c1" class="c-typography c-typography__variant--h3" data-uid="62bed2b23f2be">
Filled buttons
</p>
<button id="62bed2b23f2f8" class="c-button c-button__filled c-button__filled--primary c-button--md c-button__toggle c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23f2f5">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23f32a" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23f327">
format_align_left
</i>
</span>
</span>
</button>
<button id="62bed2b23f362" class="c-button c-button__filled c-button__filled--secondary c-button--md c-button__toggle c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23f35f">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23f392" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23f390">
format_align_center
</i>
</span>
</span>
</button>
<button id="62bed2b23f3c9" class="c-button c-button__filled c-button__filled--default c-button--md c-button__toggle c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23f3c6">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23f3fb" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23f3f8">
format_align_right
</i>
</span>
</span>
</button>
<!-- typography.blade.php -->
<p id="62bed2b23f42d" class="c-typography c-typography__variant--h3" data-uid="62bed2b23f42b">
Outline buttons
</p>
<button id="62bed2b23f461" class="c-button c-button__outlined c-button__outlined--primary c-button--md c-button__toggle c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23f45e">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23f492" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23f490">
format_align_left
</i>
</span>
</span>
</button>
<button id="62bed2b23f4c9" class="c-button c-button__outlined c-button__outlined--secondary c-button--md c-button__toggle c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23f4c6">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23f4fa" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23f4f7">
format_align_center
</i>
</span>
</span>
</button>
<button id="62bed2b23f531" class="c-button c-button__outlined c-button__outlined--default c-button--md c-button__toggle c-button--icon-only" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23f52f">
<span class="c-button__label">
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<i id="62bed2b23f562" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed2b23f560">
format_align_right
</i>
</span>
</span>
</button>
@typography([
"variant" => "h3"
])
Basic buttons
@endtypography
@button([
'icon' => 'format_align_left',
'toggle' => true,
'size' => 'md',
'color' => 'primary',
'style' => 'basic'
])
@endbutton
@button([
'icon' => 'format_align_center',
'toggle' => true,
'size' => 'md',
'color' => 'secondary',
'style' => 'basic'
])
@endbutton
@button([
'icon' => 'format_align_right',
'toggle' => true,
'size' => 'md',
'style' => 'basic'
])
@endbutton
@typography([
"variant" => "h3"
])
Filled buttons
@endtypography
@button([
'icon' => 'format_align_left',
'toggle' => true,
'size' => 'md',
'color' => 'primary',
'style' => 'filled'
])
@endbutton
@button([
'icon' => 'format_align_center',
'toggle' => true,
'size' => 'md',
'color' => 'secondary',
'style' => 'filled'
])
@endbutton
@button([
'icon' => 'format_align_right',
'toggle' => true,
'size' => 'md',
'style' => 'filled'
])
@endbutton
@typography([
"variant" => "h3"
])
Outline buttons
@endtypography
@button([
'icon' => 'format_align_left',
'toggle' => true,
'size' => 'md',
'color' => 'primary',
'style' => 'outlined'
])
@endbutton
@button([
'icon' => 'format_align_center',
'toggle' => true,
'size' => 'md',
'color' => 'secondary',
'style' => 'outlined'
])
@endbutton
@button([
'icon' => 'format_align_right',
'toggle' => true,
'size' => 'md',
'style' => 'outlined'
])
@endbutton
Type
Use the type attribute to help define the action of the button.
<button id="62bed2b23f834" class="c-button c-button__basic c-button__basic--primary c-button--md" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="submit" aria-pressed="false" data-uid="62bed2b23f830">
<span class="c-button__label">
<span class="c-button__label-text ">
Submit
</span>
</span>
</button>
<button id="62bed2b23f873" class="c-button c-button__basic c-button__basic--secondary c-button--md" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="button" aria-pressed="false" data-uid="62bed2b23f870">
<span class="c-button__label">
<span class="c-button__label-text ">
Secondary
</span>
</span>
</button>
<button id="62bed2b23f8da" class="c-button c-button__basic c-button__basic--default c-button--md" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="reset" aria-pressed="false" data-uid="62bed2b23f8d6">
<span class="c-button__label">
<span class="c-button__label-text ">
Default
</span>
</span>
</button>
@button([
'text' => 'Submit',
'color' => 'primary',
'style' => 'basic',
'type' => 'submit'
])
@endbutton
@button([
'text' => 'Secondary',
'color' => 'secondary',
'style' => 'basic',
'type' => 'button'
])
@endbutton
@button([
'text' => 'Default',
'color' => 'default',
'style' => 'basic',
'type' => 'reset'
])
@endbutton
Blade component parameters
Key | Default value | Type | Available values | Description |
text | false | boolean | - | The text-content of a button. |
size | md | string | - | The size of the button; sm, md, lg. |
color | default | string | - | The color scheme for the button. |
type | button | string | - | What button type. |
style | filled | string | - | The type of appearance, can be basic, filled or outlined. |
href | false | boolean | - | Where should the button link to? |
target | _top | string | - | Open a new tab or not? |
componentElement | button | string | - | The tag to use for this component. |
labelElement | span | string | - | The element containing the label. |
ripple | true | boolean | - | Enable / disable ripple on click. |
pressed | false | string | - | - |
toggle | false | boolean | - | Will toggle the color of the font. |
icon | false | boolean | - | The name of the icon. |
attributeList | {"js-toggle-trigger":"","js-toggle-item":""} | array | - | - |
reversePositions | false | boolean | - | Reverse the position of icon and text. |
fullWidth | false | boolean | - | Makes button full width. |
classListIcon | [] | array | - | Array of classes placed on the icon |
classListText | [] | array | - | Array of classes placed on the text |
id | string | - | The DOM id of the component. | |
classList | [] | array | - | Array containing wrapping classes array |
attributeList | [] | array | - | Array containing keys and values rendered as attributes |
containerAware | false | boolean | true/false | Makes the component container aware. Appends modifiers --size--xs/sm/md/lg to the component. |