Floating Action Button
FAB
Note: We've removed the placement of the buttons to prevent issues with documentation. Remove the values from the classList to get the intended layout.
Vestibulum id ligula porta felis euismod semper
<div class="c-fab c-fab__bottom-right" data-uid="647e4c8ae4cf9">
<div js-toggle-item="panel-id-647e4c8ae4cef" js-toggle-class="c-fab__panel--open" class="c-fab__panel">
<!-- typography.blade.php -->
<p class="c-typography c-fab__heading c-typography__variant--h6" data-uid="647e4c8ae4e22">
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" js-keep-in-viewport-after-resize="1" id="647e4c8ae3bdc" data-uid="647e4c8ae3bdc">
<li id="647e4c8ae3bdc-3306725509470245485-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" id="647e4c8ae3bdc-3306725509470245485-0__label" href="#" target="_top" id="647e4c8ae3bdc-3306725509470245485-0__label" data-uid="647e4c8ae3fee">
<br />
<b>Notice</b>: Undefined index: icon in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>8</b><br />
<br />
<b>Notice</b>: Undefined index: size in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>9</b><br />
<br />
<b>Notice</b>: Undefined index: classList in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>10</b><br />
<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>11</b><br />
<!-- icon.blade.php -->
<span class="c-nav__text" style="<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>14</b><br />
">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" js-keep-in-viewport-after-resize="1" id="647e4c8ae407f" data-uid="647e4c8ae407f">
<li id="647e4c8ae407f-6246528361734676129-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" id="647e4c8ae407f-6246528361734676129-0__label" href="#" target="_top" id="647e4c8ae407f-6246528361734676129-0__label" data-uid="647e4c8ae414a">
<br />
<b>Notice</b>: Undefined index: icon in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>8</b><br />
<br />
<b>Notice</b>: Undefined index: size in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>9</b><br />
<br />
<b>Notice</b>: Undefined index: classList in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>10</b><br />
<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>11</b><br />
<!-- icon.blade.php -->
<span class="c-nav__text" style="<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>14</b><br />
">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" js-keep-in-viewport-after-resize="1" id="647e4c8ae41a0" data-uid="647e4c8ae41a0">
<li id="647e4c8ae41a0-6650864510842612492-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" id="647e4c8ae41a0-6650864510842612492-0__label" href="#" target="_top" id="647e4c8ae41a0-6650864510842612492-0__label" data-uid="647e4c8ae425c">
<br />
<b>Notice</b>: Undefined index: icon in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>8</b><br />
<br />
<b>Notice</b>: Undefined index: size in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>9</b><br />
<br />
<b>Notice</b>: Undefined index: classList in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>10</b><br />
<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>11</b><br />
<!-- icon.blade.php -->
<span class="c-nav__text" style="<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>14</b><br />
">Arbete - Granchild 1</span>
</a>
</div>
</li>
<li id="647e4c8ae41a0-5778690335827155358-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" id="647e4c8ae41a0-5778690335827155358-1__label" href="#" target="_top" id="647e4c8ae41a0-5778690335827155358-1__label" data-uid="647e4c8ae4316">
<br />
<b>Notice</b>: Undefined index: icon in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>8</b><br />
<br />
<b>Notice</b>: Undefined index: size in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>9</b><br />
<br />
<b>Notice</b>: Undefined index: classList in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>10</b><br />
<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>11</b><br />
<!-- icon.blade.php -->
<span class="c-nav__text" style="<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>14</b><br />
">Arbete - Granchild 2</span>
</a>
</div>
</li>
</ul>
</li>
<li id="647e4c8ae407f-6576559578444127156-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" id="647e4c8ae407f-6576559578444127156-1__label" href="#" target="_top" id="647e4c8ae407f-6576559578444127156-1__label" data-uid="647e4c8ae43d3">
<br />
<b>Notice</b>: Undefined index: icon in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>8</b><br />
<br />
<b>Notice</b>: Undefined index: size in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>9</b><br />
<br />
<b>Notice</b>: Undefined index: classList in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>10</b><br />
<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>11</b><br />
<!-- icon.blade.php -->
<span class="c-nav__text" style="<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>14</b><br />
">Arbete - Child 2</span>
</a>
</div>
</li>
</ul>
</li>
<li id="647e4c8ae3bdc-3524241949758346776-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" id="647e4c8ae3bdc-3524241949758346776-1__label" href="#" target="_top" id="647e4c8ae3bdc-3524241949758346776-1__label" data-uid="647e4c8ae44a0">
<br />
<b>Notice</b>: Undefined index: icon in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>8</b><br />
<br />
<b>Notice</b>: Undefined index: size in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>9</b><br />
<br />
<b>Notice</b>: Undefined index: classList in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>10</b><br />
<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>11</b><br />
<!-- icon.blade.php -->
<span class="c-nav__text" style="<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>14</b><br />
">Bo, bygga och miljö</span>
</a>
</div>
</li>
<li id="647e4c8ae3bdc-4761729990981735883-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" id="647e4c8ae3bdc-4761729990981735883-2__label" href="#" target="_top" id="647e4c8ae3bdc-4761729990981735883-2__label" data-uid="647e4c8ae4554">
<br />
<b>Notice</b>: Undefined index: icon in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>8</b><br />
<br />
<b>Notice</b>: Undefined index: size in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>9</b><br />
<br />
<b>Notice</b>: Undefined index: classList in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>10</b><br />
<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>11</b><br />
<!-- icon.blade.php -->
<span class="c-nav__text" style="<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>14</b><br />
">Förskola och utbildning</span>
</a>
</div>
</li>
<li id="647e4c8ae3bdc-3869068831303164481-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" id="647e4c8ae3bdc-3869068831303164481-3__label" href="#" target="_top" id="647e4c8ae3bdc-3869068831303164481-3__label" data-uid="647e4c8ae46c4">
<br />
<b>Notice</b>: Undefined index: icon in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>8</b><br />
<br />
<b>Notice</b>: Undefined index: size in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>9</b><br />
<br />
<b>Notice</b>: Undefined index: classList in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>10</b><br />
<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>11</b><br />
<!-- icon.blade.php -->
<span class="c-nav__text" style="<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>14</b><br />
">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" js-keep-in-viewport-after-resize="1" id="647e4c8ae470c" data-uid="647e4c8ae470c">
<li id="647e4c8ae470c-3254987550654778018-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" id="647e4c8ae470c-3254987550654778018-0__label" href="#" target="_top" id="647e4c8ae470c-3254987550654778018-0__label" data-uid="647e4c8ae47c0">
<br />
<b>Notice</b>: Undefined index: icon in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>8</b><br />
<br />
<b>Notice</b>: Undefined index: size in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>9</b><br />
<br />
<b>Notice</b>: Undefined index: classList in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>10</b><br />
<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>11</b><br />
<!-- icon.blade.php -->
<span class="c-nav__text" style="<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>14</b><br />
">About</span>
</a>
</div>
</li>
<li id="647e4c8ae470c-8536291902867013800-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" id="647e4c8ae470c-8536291902867013800-1__label" href="#" target="_top" id="647e4c8ae470c-8536291902867013800-1__label" data-uid="647e4c8ae4860">
<br />
<b>Notice</b>: Undefined index: icon in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>8</b><br />
<br />
<b>Notice</b>: Undefined index: size in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>9</b><br />
<br />
<b>Notice</b>: Undefined index: classList in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>10</b><br />
<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>11</b><br />
<!-- icon.blade.php -->
<span class="c-nav__text" style="<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>14</b><br />
">Contact</span>
</a>
</div>
</li>
<li id="647e4c8ae470c-2595007817415066132-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" id="647e4c8ae470c-2595007817415066132-2__label" href="#" target="_top" id="647e4c8ae470c-2595007817415066132-2__label" data-uid="647e4c8ae48ff">
<br />
<b>Notice</b>: Undefined index: icon in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>8</b><br />
<br />
<b>Notice</b>: Undefined index: size in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>9</b><br />
<br />
<b>Notice</b>: Undefined index: classList in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>10</b><br />
<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>11</b><br />
<!-- icon.blade.php -->
<span class="c-nav__text" style="<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>14</b><br />
">Links</span>
</a>
</div>
</li>
<li id="647e4c8ae470c-1486096305799865493-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" id="647e4c8ae470c-1486096305799865493-3__label" href="#" target="_top" id="647e4c8ae470c-1486096305799865493-3__label" data-uid="647e4c8ae4a65">
<br />
<b>Notice</b>: Undefined index: icon in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>8</b><br />
<br />
<b>Notice</b>: Undefined index: size in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>9</b><br />
<br />
<b>Notice</b>: Undefined index: classList in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>10</b><br />
<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>11</b><br />
<!-- icon.blade.php -->
<span class="c-nav__text" style="<br />
<b>Notice</b>: Undefined index: color in <b>/tmp/blade-engine-cache/125eaa0f1387acfc0d4704a4ed6f6721e2b8ad88.php</b> on line <b>14</b><br />
">More info</span>
</a>
</div>
</li>
</ul>
</li>
<li id="647e4c8ae3bdc-5782660276654359969-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--" target="_top" aria-label="Omsorg och stöd" type="button" href="#" id="647e4c8ae3bdc - 5782660276654359969-4__label" data-uid="647e4c8ae4b5e">
<span class="c-button__label">
<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" target="_top" js-toggle-trigger="panel-id-647e4c8ae4cef" type="button" aria-label="Open menu" data-uid="647e4c8ae4e7f">
<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--apps c-icon--material c-icon--material-apps material-icons c-icon--size-md" aria-hidden="true" translate="no" role="img" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="647e4c8ae4ec3">
<span data-nosnippet aria-hidden="true">
apps
</span>
</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. |