Button

Buttons of type basic

Primary (href)
<a class="c-button c-button__basic c-button__basic--primary c-button--md" target="_top" type="button" href="https://helsingborg.se" aria-label="Primary (href)" data-uid="673ed1e727786">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon c-button__label-icon--reverse">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--home c-icon--material c-icon--material-home material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="home" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e72787e">
                    </span>
            </span>
        
                    <span class="c-button__label-text c-button__label-text--reverse">
                Primary (href)
            </span>
        
    </span> </a>
    <button class="c-button c-button__basic c-button__basic--secondary c-button--md" target="_top" type="button" aria-label="Secondary" data-uid="673ed1e7278e1">   
     <span class="c-button__label">         
        
                    <span class="c-button__label-text ">
                Secondary
            </span>
        
    </span> </button>
    <button class="c-button c-button__basic c-button__basic--default c-button--md" target="_top" type="button" aria-label="Default" data-uid="673ed1e727925">   
     <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

Primary outlined
<a class="c-button c-button__outlined c-button__outlined--primary c-button--md" target="_top" type="button" href="https://helsingborg.se" aria-label="Primary outlined" data-uid="673ed1e727c4e">   
     <span class="c-button__label">         
        
                    <span class="c-button__label-text ">
                Primary outlined
            </span>
        
    </span> </a>
    <button class="c-button c-button__outlined c-button__outlined--secondary c-button--md" target="_top" type="button" aria-label="Secondary outlined" data-uid="673ed1e727c7e">   
     <span class="c-button__label">         
        
                    <span class="c-button__label-text ">
                Secondary outlined
            </span>
        
    </span> </button>
    <button class="c-button c-button__outlined c-button__outlined--default c-button--md" target="_top" type="button" aria-label="Default outlined" data-uid="673ed1e727ca8">   
     <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

Primary filled
<a class="c-button c-button__filled c-button__filled--primary c-button--md" target="_top" type="button" href="https://helsingborg.se" aria-label="Primary filled" data-uid="673ed1e727efb">   
     <span class="c-button__label">         
        
                    <span class="c-button__label-text ">
                Primary filled
            </span>
        
    </span> </a>
    <button class="c-button c-button__filled c-button__filled--secondary c-button--md" target="_top" type="button" aria-label="Secondary filled" data-uid="673ed1e727f2b">   
     <span class="c-button__label">         
        
                    <span class="c-button__label-text ">
                Secondary filled
            </span>
        
    </span> </button>
    <button class="c-button c-button__filled c-button__filled--default c-button--md" target="_top" type="button" aria-label="Default filled" data-uid="673ed1e727f57">   
     <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

<button class="c-button c-button__filled c-button__filled--default c-button--md" target="_top" type="button" aria-label="Reversed" data-uid="673ed1e7282ff">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon c-button__label-icon--reverse">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--close c-icon--material c-icon--material-close material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="close" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e728345">
                    </span>
            </span>
        
                    <span class="c-button__label-text c-button__label-text--reverse">
                Reversed
            </span>
        
    </span> </button>
    <button class="c-button c-button__filled c-button__filled--default c-button--md" target="_top" type="button" aria-label="Not reversed" data-uid="673ed1e728383">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--close c-icon--material c-icon--material-close material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="close" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e7283b3">
                    </span>
            </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

Button with icon only - sizes

<button class="c-button c-button__basic c-button__basic--primary c-button--md c-button--icon-only" target="_top" aria-label="close" type="button" data-uid="673ed1e728703">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--close c-icon--material c-icon--material-close material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="close" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e728737">
                    </span>
            </span>
        
        
    </span> </button>
    <button class="c-button c-button__filled c-button__filled--primary c-button--md c-button--icon-only" target="_top" aria-label="close" type="button" data-uid="673ed1e728771">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--close c-icon--material c-icon--material-close material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="close" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e7287a0">
                    </span>
            </span>
        
        
    </span> </button>
    <button class="c-button c-button__outlined c-button__outlined--primary c-button--md c-button--icon-only" target="_top" aria-label="close" type="button" data-uid="673ed1e7287df">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--close c-icon--material c-icon--material-close material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="close" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e72880f">
                    </span>
            </span>
        
        
    </span> </button>
    <button class="c-button c-button__basic c-button__basic--secondary c-button--md c-button--icon-only" target="_top" aria-label="close" type="button" data-uid="673ed1e728847">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--close c-icon--material c-icon--material-close material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="close" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e728875">
                    </span>
            </span>
        
        
    </span> </button>
    <button class="c-button c-button__filled c-button__filled--secondary c-button--md c-button--icon-only" target="_top" aria-label="close" type="button" data-uid="673ed1e7288b6">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--close c-icon--material c-icon--material-close material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="close" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e7288de">
                    </span>
            </span>
        
        
    </span> </button>
    <button class="c-button c-button__outlined c-button__outlined--secondary c-button--md c-button--icon-only" target="_top" aria-label="close" type="button" data-uid="673ed1e728910">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--close c-icon--material c-icon--material-close material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="close" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e728938">
                    </span>
            </span>
        
        
    </span> </button>
    <button class="c-button c-button__basic c-button__basic--default c-button--md c-button--icon-only" target="_top" aria-label="close" type="button" data-uid="673ed1e728966">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--close c-icon--material c-icon--material-close material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="close" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e72898e">
                    </span>
            </span>
        
        
    </span> </button>
    <button class="c-button c-button__filled c-button__filled--default c-button--md c-button--icon-only" target="_top" aria-label="close" type="button" data-uid="673ed1e7289bd">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--close c-icon--material c-icon--material-close material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="close" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e7289e5">
                    </span>
            </span>
        
        
    </span> </button>
    <button class="c-button c-button__outlined c-button__outlined--default c-button--md c-button--icon-only" target="_top" aria-label="close" type="button" data-uid="673ed1e728a13">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--close c-icon--material c-icon--material-close material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="close" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e728a3c">
                    </span>
            </span>
        
        
    </span> </button>
    <!-- typography.blade.php   original: p -->
<p class="c-typography c-typography__variant--h3" data-uid="673ed1e728a8d">
    Button with icon only - sizes
</p>
    <button class="c-button c-button__filled c-button__filled--default c-button--sm c-button--icon-only" target="_top" aria-label="close" type="button" data-uid="673ed1e728abd">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--close c-icon--material c-icon--material-close material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-sm" aria-hidden="false" material-symbol="close" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e728af9">
                    </span>
            </span>
        
        
    </span> </button>
    <button class="c-button c-button__filled c-button__filled--default c-button--md c-button--icon-only" target="_top" aria-label="close" type="button" data-uid="673ed1e728b30">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--close c-icon--material c-icon--material-close material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="close" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e728b67">
                    </span>
            </span>
        
        
    </span> </button>
    <button class="c-button c-button__filled c-button__filled--default c-button--lg c-button--icon-only" target="_top" aria-label="close" type="button" data-uid="673ed1e728bb4">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--close c-icon--material c-icon--material-close material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-lg" aria-hidden="false" material-symbol="close" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e728be4">
                    </span>
            </span>
        
        
    </span> </button>
    <button class="c-button c-button__outlined c-button__outlined--default c-button--sm c-button--icon-only" target="_top" aria-label="close" type="button" data-uid="673ed1e728c1a">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--close c-icon--material c-icon--material-close material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-sm" aria-hidden="false" material-symbol="close" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e728c46">
                    </span>
            </span>
        
        
    </span> </button>
    <button class="c-button c-button__outlined c-button__outlined--default c-button--md c-button--icon-only" target="_top" aria-label="close" type="button" data-uid="673ed1e728c7a">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--close c-icon--material c-icon--material-close material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="close" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e728ca7">
                    </span>
            </span>
        
        
    </span> </button>
    <button class="c-button c-button__outlined c-button__outlined--default c-button--lg c-button--icon-only" target="_top" aria-label="close" type="button" data-uid="673ed1e728cda">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--close c-icon--material c-icon--material-close material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-lg" aria-hidden="false" material-symbol="close" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e728d06">
                    </span>
            </span>
        
        
    </span> </button>
    <button class="c-button c-button__basic c-button__basic--default c-button--sm c-button--icon-only" target="_top" aria-label="close" type="button" data-uid="673ed1e728d3a">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--close c-icon--material c-icon--material-close material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-sm" aria-hidden="false" material-symbol="close" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e728d66">
                    </span>
            </span>
        
        
    </span> </button>
    <button class="c-button c-button__basic c-button__basic--default c-button--md c-button--icon-only" target="_top" aria-label="close" type="button" data-uid="673ed1e728d99">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--close c-icon--material c-icon--material-close material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="close" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e728dc5">
                    </span>
            </span>
        
        
    </span> </button>
    <button class="c-button c-button__basic c-button__basic--default c-button--lg c-button--icon-only" target="_top" aria-label="close" type="button" data-uid="673ed1e728df8">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--close c-icon--material c-icon--material-close material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-lg" aria-hidden="false" material-symbol="close" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e728e23">
                    </span>
            </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

<button class="c-button c-button__filled c-button__filled--secondary c-button--sm" target="_top" type="button" aria-label="Size sm" data-uid="673ed1e7290fa">   
     <span class="c-button__label">         
        
                    <span class="c-button__label-text ">
                Size sm
            </span>
        
    </span> </button>
    <button class="c-button c-button__filled c-button__filled--secondary c-button--md" target="_top" type="button" aria-label="Size md" data-uid="673ed1e72912a">   
     <span class="c-button__label">         
        
                    <span class="c-button__label-text ">
                Size md
            </span>
        
    </span> </button>
    <button class="c-button c-button__filled c-button__filled--secondary c-button--lg" target="_top" type="button" aria-label="Size lg" data-uid="673ed1e729157">   
     <span class="c-button__label">         
        
                    <span class="c-button__label-text ">
                Size lg
            </span>
        
    </span> </button>
@button([
'color' => 'secondary',
'size' => 'sm',
'text' => 'Size sm'
])
@endbutton

@button([
'color' => 'secondary',
'size' => 'md',
'text' => 'Size md'
])
@endbutton

@button([
'color' => 'secondary',
'size' => 'lg',
'text' => 'Size lg'
])
@endbutton

Size with icons

<button class="c-button c-button__filled c-button__filled--secondary c-button--sm" target="_top" type="button" aria-label="Size sm" data-uid="673ed1e7293d7">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon c-button__label-icon--reverse">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--home c-icon--material c-icon--material-home material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-sm" aria-hidden="false" material-symbol="home" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e72940a">
                    </span>
            </span>
        
                    <span class="c-button__label-text c-button__label-text--reverse">
                Size sm
            </span>
        
    </span> </button>
    <button class="c-button c-button__filled c-button__filled--secondary c-button--md" target="_top" type="button" aria-label="Size md" data-uid="673ed1e729446">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon c-button__label-icon--reverse">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--home c-icon--material c-icon--material-home material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="home" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e729475">
                    </span>
            </span>
        
                    <span class="c-button__label-text c-button__label-text--reverse">
                Size md
            </span>
        
    </span> </button>
    <button class="c-button c-button__filled c-button__filled--secondary c-button--lg" target="_top" type="button" aria-label="Size lg" data-uid="673ed1e7294ac">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon c-button__label-icon--reverse">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--home c-icon--material c-icon--material-home material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-lg" aria-hidden="false" material-symbol="home" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e7294da">
                    </span>
            </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',
'icon' => 'home',
'reversePositions' => 'true'
])
@endbutton

@button([
'color' => 'secondary',
'size' => 'md',
'text' => 'Size md',
'icon' => 'home',
'reversePositions' => 'true'
])
@endbutton

@button([
'color' => 'secondary',
'size' => 'lg',
'text' => 'Size lg',
'icon' => 'home',
'reversePositions' => 'true'
])
@endbutton

Disabled buttons

<button class="c-button c-button__basic c-button__basic--default c-button--md" target="_top" js-toggle-trigger="" disabled="" type="button" aria-label="Disabled" data-uid="673ed1e7297e3">   
     <span class="c-button__label">         
        
                    <span class="c-button__label-text ">
                Disabled
            </span>
        
    </span> </button>
    <button class="c-button c-button__basic c-button__basic--default c-button--md" target="_top" js-toggle-trigger="" disabled="" type="button" aria-label="Disabled outlined" data-uid="673ed1e729816">   
     <span class="c-button__label">         
        
                    <span class="c-button__label-text ">
                Disabled outlined
            </span>
        
    </span> </button>
    <button class="c-button c-button__basic c-button__basic--default c-button--md c-button--icon-only" target="_top" disabled="" aria-label="close" type="button" data-uid="673ed1e729845">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--close c-icon--material c-icon--material-close material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="close" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e729876">
                    </span>
            </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

Basic buttons

Filled buttons

Outline buttons

<!-- typography.blade.php   original: p -->
<p class="c-typography c-typography__variant--h3" data-uid="673ed1e729b8f">
    Basic buttons
</p>
    <button class="c-button c-button__basic c-button__basic--primary c-button--md c-button__toggle c-button--icon-only" target="_top" aria-pressed="false" aria-label="format_align_left" type="button" data-uid="673ed1e729bc7">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--format-align-left c-icon--material c-icon--material-format_align_left material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="format_align_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e729bfa">
                    </span>
            </span>
        
        
    </span> </button>
    <button class="c-button c-button__basic c-button__basic--secondary c-button--md c-button__toggle c-button--icon-only" target="_top" aria-pressed="false" aria-label="format_align_center" type="button" data-uid="673ed1e729c39">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--format-align-center c-icon--material c-icon--material-format_align_center material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="format_align_center" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e729c71">
                    </span>
            </span>
        
        
    </span> </button>
    <button class="c-button c-button__basic c-button__basic--default c-button--md c-button__toggle c-button--icon-only" target="_top" aria-pressed="false" aria-label="format_align_right" type="button" data-uid="673ed1e729cb6">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--format-align-right c-icon--material c-icon--material-format_align_right material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="format_align_right" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e729ce5">
                    </span>
            </span>
        
        
    </span> </button>
    <!-- typography.blade.php   original: p -->
<p class="c-typography c-typography__variant--h3" data-uid="673ed1e729d21">
    Filled buttons
</p>
    <button class="c-button c-button__filled c-button__filled--primary c-button--md c-button__toggle c-button--icon-only" target="_top" aria-pressed="false" aria-label="format_align_left" type="button" data-uid="673ed1e729d4d">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--format-align-left c-icon--material c-icon--material-format_align_left material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="format_align_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e729d78">
                    </span>
            </span>
        
        
    </span> </button>
    <button class="c-button c-button__filled c-button__filled--secondary c-button--md c-button__toggle c-button--icon-only" target="_top" aria-pressed="false" aria-label="format_align_center" type="button" data-uid="673ed1e729dab">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--format-align-center c-icon--material c-icon--material-format_align_center material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="format_align_center" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e729dd5">
                    </span>
            </span>
        
        
    </span> </button>
    <button class="c-button c-button__filled c-button__filled--default c-button--md c-button__toggle c-button--icon-only" target="_top" aria-pressed="false" aria-label="format_align_right" type="button" data-uid="673ed1e729e07">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--format-align-right c-icon--material c-icon--material-format_align_right material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="format_align_right" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e729e31">
                    </span>
            </span>
        
        
    </span> </button>

    <!-- typography.blade.php   original: p -->
<p class="c-typography c-typography__variant--h3" data-uid="673ed1e729e5e">
    Outline buttons
</p>
    <button class="c-button c-button__outlined c-button__outlined--primary c-button--md c-button__toggle c-button--icon-only" target="_top" aria-pressed="false" aria-label="format_align_left" type="button" data-uid="673ed1e729e9c">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--format-align-left c-icon--material c-icon--material-format_align_left material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="format_align_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e729ecb">
                    </span>
            </span>
        
        
    </span> </button>
    <button class="c-button c-button__outlined c-button__outlined--secondary c-button--md c-button__toggle c-button--icon-only" target="_top" aria-pressed="false" aria-label="format_align_center" type="button" data-uid="673ed1e729f04">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--format-align-center c-icon--material c-icon--material-format_align_center material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="format_align_center" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e729f3a">
                    </span>
            </span>
        
        
    </span> </button>
    <button class="c-button c-button__outlined c-button__outlined--default c-button--md c-button__toggle c-button--icon-only" target="_top" aria-pressed="false" aria-label="format_align_right" type="button" data-uid="673ed1e729f74">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--format-align-right c-icon--material c-icon--material-format_align_right material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="format_align_right" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e729fa3">
                    </span>
            </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

Togglebuttons with interchangable labels and icons

Toggle buttons with interchangable labels & icons

<!-- typography.blade.php   original: p -->
<p class="c-typography c-typography__variant--h3" data-uid="673ed1e72a254">
    Toggle buttons with interchangable labels & icons
</p>

    <div style="margin-bottom: 32px;">

            <button class="c-button c-button__basic c-button__basic--primary c-button--md c-button__toggle c-button--icon-only" target="_top" data-toggle-icon="close" aria-pressed="false" aria-label="format_align_left" type="button" data-uid="673ed1e72a28a">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--format-align-left c-icon--material c-icon--material-format_align_left material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="format_align_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e72a2b7">
                    </span>
            </span>
        
        
    </span> </button>
            <button class="c-button c-button__basic c-button__basic--primary c-button--md c-button__toggle" target="_top" data-toggle-label="Close" aria-pressed="false" type="button" aria-label="Click me!" data-uid="673ed1e72a2ed">   
     <span class="c-button__label">         
        
                    <span class="c-button__label-text ">
                Click me!
            </span>
        
    </span> </button>
            <button class="c-button c-button__basic c-button__basic--secondary c-button--md c-button__toggle" target="_top" data-toggle-label="Close" data-toggle-icon="close" aria-pressed="false" type="button" aria-label="Open" data-uid="673ed1e72a325">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon c-button__label-icon--reverse">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--format-align-center c-icon--material c-icon--material-format_align_center material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="format_align_center" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e72a352">
                    </span>
            </span>
        
                    <span class="c-button__label-text c-button__label-text--reverse">
                Open
            </span>
        
    </span> </button>
    </div>


    <div style="margin-bottom: 32px;">

            <button class="c-button c-button__filled c-button__filled--primary c-button--md c-button__toggle c-button--icon-only" target="_top" data-toggle-icon="close" aria-pressed="false" aria-label="format_align_left" type="button" data-uid="673ed1e72a389">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--format-align-left c-icon--material c-icon--material-format_align_left material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="format_align_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e72a3b4">
                    </span>
            </span>
        
        
    </span> </button>
            <button class="c-button c-button__filled c-button__filled--primary c-button--md c-button__toggle" target="_top" data-toggle-label="Close" aria-pressed="false" type="button" aria-label="Click me!" data-uid="673ed1e72a3e7">   
     <span class="c-button__label">         
        
                    <span class="c-button__label-text ">
                Click me!
            </span>
        
    </span> </button>
            <button class="c-button c-button__filled c-button__filled--secondary c-button--md c-button__toggle" target="_top" data-toggle-label="Close" data-toggle-icon="close" aria-pressed="false" type="button" aria-label="Open" data-uid="673ed1e72a415">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon c-button__label-icon--reverse">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--format-align-center c-icon--material c-icon--material-format_align_center material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="format_align_center" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e72a43f">
                    </span>
            </span>
        
                    <span class="c-button__label-text c-button__label-text--reverse">
                Open
            </span>
        
    </span> </button>
    </div>


    <div style="margin-bottom: 32px;">

            <button class="c-button c-button__outlined c-button__outlined--primary c-button--md c-button__toggle c-button--icon-only" target="_top" data-toggle-icon="close" aria-pressed="false" aria-label="format_align_left" type="button" data-uid="673ed1e72a476">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--format-align-left c-icon--material c-icon--material-format_align_left material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="format_align_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e72a4a0">
                    </span>
            </span>
        
        
    </span> </button>
            <button class="c-button c-button__outlined c-button__outlined--primary c-button--md c-button__toggle" target="_top" data-toggle-label="Close" aria-pressed="false" type="button" aria-label="Click me!" data-uid="673ed1e72a4d2">   
     <span class="c-button__label">         
        
                    <span class="c-button__label-text ">
                Click me!
            </span>
        
    </span> </button>
            <button class="c-button c-button__outlined c-button__outlined--secondary c-button--md c-button__toggle" target="_top" data-toggle-label="Close" data-toggle-icon="close" aria-pressed="false" type="button" aria-label="Open" data-uid="673ed1e72a501">   
     <span class="c-button__label">         
                    <span class="c-button__label-icon c-button__label-icon--reverse">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--format-align-center c-icon--material c-icon--material-format_align_center material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="format_align_center" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed1e72a52b">
                    </span>
            </span>
        
                    <span class="c-button__label-text c-button__label-text--reverse">
                Open
            </span>
        
    </span> </button>
    </div>
@typography([
    "variant" => "h3"
])
    Toggle buttons with interchangable labels & icons
@endtypography

@foreach(['basic', 'filled', 'outlined'] as $style)

    <div style="margin-bottom: 32px;">

        @button([
            'icon' => 'format_align_left',
            'toggle' => true,
            'size' => 'md',
            'color' => 'primary',
            'style' => $style,
            'attributeList' => [
                'data-toggle-icon' => 'close' //Icon id
            ]
        ])
        @endbutton

        @button([
            'text' => 'Click me!',
            'toggle' => true,
            'size' => 'md',
            'color' => 'primary',
            'style' => $style,
            'attributeList' => [
                'data-toggle-label' => 'Close', //New label
            ]
        ])
        @endbutton

        @button([
            'text' => 'Open',
            'icon' => 'format_align_center',
            'toggle' => true,
            'size' => 'md',
            'color' => 'secondary',
            'style' => $style,
            'reversePositions' => true,
            'attributeList' => [
                'data-toggle-label' => 'Close', //New label
                'data-toggle-icon' => 'close' //Icon id
            ]
        ])
        @endbutton

    </div>

@endforeach

Type

<button class="c-button c-button__basic c-button__basic--primary c-button--md" target="_top" type="submit" aria-label="Submit" data-uid="673ed1e72a81b">   
     <span class="c-button__label">         
        
                    <span class="c-button__label-text ">
                Submit
            </span>
        
    </span> </button>
    <button class="c-button c-button__basic c-button__basic--secondary c-button--md" target="_top" type="button" aria-label="Secondary" data-uid="673ed1e72a850">   
     <span class="c-button__label">         
        
                    <span class="c-button__label-text ">
                Secondary
            </span>
        
    </span> </button>
    <button class="c-button c-button__basic c-button__basic--default c-button--md" target="_top" type="reset" aria-label="Default" data-uid="673ed1e72a87f">   
     <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.
shape normal string - If the shape of the button should be normal, or fully rounded (pill style).
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.
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
ariaLabel string - Aria label text for the button
disableColor true boolean - To use or not to use the disabled color even if the button is disabled
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.
Settings location: /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Component/Button/button.json