Floating Action Button
FAB
Vestibulum id ligula porta felis euismod semper
<div class="c-fab c-fab__bottom-right" data-uid="68df044aa7264">
<div data-js-toggle-item="panel-id-68df044aa7256" data-js-toggle-class="c-fab__panel--open" class="c-fab__panel">
<!-- typography.blade.php original: p -->
<p class="c-typography c-fab__heading c-typography__variant--h6" data-uid="68df044aa72f6">
Vestibulum id ligula porta felis euismod semper
</p>
<!-- nav.blade.php -->
<ul class="c-nav c-nav--tiles c-nav--depth-1 unlist c-nav--vertical" aria-orientation="vertical" role="menu" data-js-keep-in-viewport-after-resize="1" id="id_68df044aa5eed" data-uid="68df044aa5eed">
<li id="68df044aa5eed-826954244348180937-0__item" class="c-nav__item c-nav__item--default c-nav__item--depth-1 has-fetched" role="menuitem" data-depth="1" aria-label="Arbete">
<div class="c-nav__item-wrapper">
<a class="c-link c-nav__link" href="#" target="_top" id="id_68df044aa5eed-826954244348180937-0__label" data-uid="68df044aa626d">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Arbete
</span>
</a>
</div>
<!-- nav.blade.php -->
<ul class="c-nav c-nav--bordered c-nav--height-sm c-nav--depth-2 unlist c-nav--vertical" aria-orientation="vertical" role="menu" data-js-keep-in-viewport-after-resize="1" id="id_68df044aa630c" data-uid="68df044aa630c">
<li id="68df044aa630c-5877238828294984630-0__item" class="c-nav__item c-nav__item--default c-nav__item--depth-2 has-fetched" role="menuitem" data-depth="2" aria-label="Arbete - Child 1 with a long name">
<div class="c-nav__item-wrapper">
<a class="c-link c-nav__link" href="#" target="_top" id="id_68df044aa630c-5877238828294984630-0__label" data-uid="68df044aa6452">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Arbete - Child 1 with a long name
</span>
</a>
</div>
<!-- nav.blade.php -->
<ul class="c-nav c-nav--bordered c-nav--height-sm c-nav--depth-3 unlist c-nav--vertical" aria-orientation="vertical" role="menu" data-js-keep-in-viewport-after-resize="1" id="id_68df044aa64c7" data-uid="68df044aa64c7">
<li id="68df044aa64c7-4346473585347695119-0__item" class="c-nav__item c-nav__item--default c-nav__item--depth-3" role="menuitem" data-depth="3" aria-label="Arbete - Granchild 1">
<div class="c-nav__item-wrapper">
<a class="c-link c-nav__link" href="#" target="_top" id="id_68df044aa64c7-4346473585347695119-0__label" data-uid="68df044aa6612">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Arbete - Granchild 1
</span>
</a>
</div>
</li>
<li id="68df044aa64c7-3598118234311704504-1__item" class="c-nav__item c-nav__item--default c-nav__item--depth-3" role="menuitem" data-depth="3" aria-label="Arbete - Granchild 2">
<div class="c-nav__item-wrapper">
<a class="c-link c-nav__link" href="#" target="_top" id="id_68df044aa64c7-3598118234311704504-1__label" data-uid="68df044aa6733">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Arbete - Granchild 2
</span>
</a>
</div>
</li>
</ul>
</li>
<li id="68df044aa630c-2135879722274065881-1__item" class="c-nav__item c-nav__item--default c-nav__item--depth-2" role="menuitem" data-depth="2" aria-label="Arbete - Child 2">
<div class="c-nav__item-wrapper">
<a class="c-link c-nav__link" href="#" target="_top" id="id_68df044aa630c-2135879722274065881-1__label" data-uid="68df044aa686d">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Arbete - Child 2
</span>
</a>
</div>
</li>
</ul>
</li>
<li id="68df044aa5eed-4052266166727501043-1__item" class="c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Bo, bygga och miljö">
<div class="c-nav__item-wrapper">
<a class="c-link c-nav__link" href="#" target="_top" id="id_68df044aa5eed-4052266166727501043-1__label" data-uid="68df044aa6985">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Bo, bygga och miljö
</span>
</a>
</div>
</li>
<li id="68df044aa5eed-6871773202064871864-2__item" class="c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Förskola och utbildning">
<div class="c-nav__item-wrapper">
<a class="c-link c-nav__link" href="#" target="_top" id="id_68df044aa5eed-6871773202064871864-2__label" data-uid="68df044aa6a89">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Förskola och utbildning
</span>
</a>
</div>
</li>
<li id="68df044aa5eed-7133310793422166783-3__item" class="c-nav__item c-nav__item--default c-nav__item--depth-1 has-fetched" role="menuitem" data-depth="1" aria-label="Kommun och politik">
<div class="c-nav__item-wrapper">
<a class="c-link c-nav__link" href="#" target="_top" id="id_68df044aa5eed-7133310793422166783-3__label" data-uid="68df044aa6bb7">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Kommun och politik
</span>
</a>
</div>
<!-- nav.blade.php -->
<ul class="c-nav c-nav--bordered c-nav--height-sm c-nav--depth-2 unlist c-nav--vertical" aria-orientation="vertical" role="menu" data-js-keep-in-viewport-after-resize="1" id="id_68df044aa6c2f" data-uid="68df044aa6c2f">
<li id="68df044aa6c2f-2016260482830020025-0__item" class="c-nav__item c-nav__item--default c-nav__item--depth-2" role="menuitem" data-depth="2" aria-label="About">
<div class="c-nav__item-wrapper">
<a class="c-link c-nav__link" href="#" target="_top" id="id_68df044aa6c2f-2016260482830020025-0__label" data-uid="68df044aa6d3d">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
About
</span>
</a>
</div>
</li>
<li id="68df044aa6c2f-7577466362009690357-1__item" class="c-nav__item c-nav__item--default c-nav__item--depth-2" role="menuitem" data-depth="2" aria-label="Contact">
<div class="c-nav__item-wrapper">
<a class="c-link c-nav__link" href="#" target="_top" id="id_68df044aa6c2f-7577466362009690357-1__label" data-uid="68df044aa6e2a">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Contact
</span>
</a>
</div>
</li>
<li id="68df044aa6c2f-4110792188547436827-2__item" class="c-nav__item c-nav__item--default c-nav__item--depth-2" role="menuitem" data-depth="2" aria-label="Links">
<div class="c-nav__item-wrapper">
<a class="c-link c-nav__link" href="#" target="_top" id="id_68df044aa6c2f-4110792188547436827-2__label" data-uid="68df044aa6f2d">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Links
</span>
</a>
</div>
</li>
<li id="68df044aa6c2f-5221794721390760231-3__item" class="c-nav__item c-nav__item--default c-nav__item--depth-2" role="menuitem" data-depth="2" aria-label="More info">
<div class="c-nav__item-wrapper">
<a class="c-link c-nav__link" href="#" target="_top" id="id_68df044aa6c2f-5221794721390760231-3__label" data-uid="68df044aa704a">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
More info
</span>
</a>
</div>
</li>
</ul>
</li>
<li id="68df044aa5eed-3219221071931111114-4__item" class="c-nav__item c-nav__item--button c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Omsorg och stöd">
<div class="c-nav__item-wrapper">
<a class="c-button c-nav__button c-button__filled c-button__filled--primary c-button--md" aria-label="Omsorg och stöd" href="#" target="_top" id="id_68df044aa5eed-3219221071931111114-4__label" data-uid="68df044aa716d">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-text c-button__label-text--reverse">
Omsorg och stöd
</span>
</span> </a>
</div>
</li>
</ul>
</div>
<button class="c-button c-button__filled c-button__filled--primary c-button--md" data-js-toggle-trigger="panel-id-68df044aa7256" type="button" aria-label="Open menu" data-uid="68df044aa7369">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon c-button__label-icon--reverse">
<!-- icon.blade.php -->
<span class="c-icon c-icon--apps c-icon--material c-icon--material-apps material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" data-material-symbol="apps" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" data-uid="68df044aa73e2">
</span>
</span>
<span class="c-button__label-text c-button__label-text--reverse">
Open menu
</span>
</span> </button> </div>
@fab([
'position' => 'bottom-right',
'heading' => "Vestibulum id ligula porta felis euismod semper",
'button' => [
'icon' => 'apps',
'size' => 'md',
'color' => 'primary',
'text' => 'Open menu',
'reversePositions' => true,
],
'classList' => []
])
@nav([
'items' => \HbgStyleGuide\Navigation::getMockedMultilevel(),
'direction' => 'vertical',
'includeToggle' => false,
'classList' => ['c-nav--tiles']
])
@endnav
@endfab
Blade component parameters
Key | Default value | Type | Available values | Description |
position | bottom-right | string | - | Where on the screen the FAB should be positioned |
heading | Samlade länkar för elever och föräldrar | string | - | Heading text for panel |
button | false | boolean | - | Settings for the button element (trigger) |
slot | string | - | Contents of popup panel | |
closeLabel | false | boolean | - | The label to indicate closing action |
closeIcon | false | boolean | - | The icon to indicate closing action |
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. |