Floating Action Button

FAB

Vestibulum id ligula porta felis euismod semper

<div class="c-fab c-fab__bottom-right" data-uid="662b7211ee02b">
    <div js-toggle-item="panel-id-662b7211ee01d" 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="662b7211ee6d7">
    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="662b7211ece89" data-uid="662b7211ece89">
          
      <li id="662b7211ece89-5887946293084686324-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="662b7211ece89-5887946293084686324-0__label" href="#" target="_top" id="662b7211ece89-5887946293084686324-0__label" data-uid="662b7211ed05e">
        <br />
<b>Warning</b>:  The parameter <b>"icon"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Warning</b>:  The parameter <b>"size"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Deprecated</b>:  htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Component/BaseController.php</b> on line <b>418</b><br />
<!-- 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" js-keep-in-viewport-after-resize="1" id="662b7211ed0d0" data-uid="662b7211ed0d0">
          
      <li id="662b7211ed0d0-2540739412098262532-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="662b7211ed0d0-2540739412098262532-0__label" href="#" target="_top" id="662b7211ed0d0-2540739412098262532-0__label" data-uid="662b7211ed1a7">
        <br />
<b>Warning</b>:  The parameter <b>"icon"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Warning</b>:  The parameter <b>"size"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Deprecated</b>:  htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Component/BaseController.php</b> on line <b>418</b><br />
<!-- 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" js-keep-in-viewport-after-resize="1" id="662b7211ed1ee" data-uid="662b7211ed1ee">
          
      <li id="662b7211ed1ee-5057809770065662462-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="662b7211ed1ee-5057809770065662462-0__label" href="#" target="_top" id="662b7211ed1ee-5057809770065662462-0__label" data-uid="662b7211ed2aa">
        <br />
<b>Warning</b>:  The parameter <b>"icon"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Warning</b>:  The parameter <b>"size"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Deprecated</b>:  htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Component/BaseController.php</b> on line <b>418</b><br />
<!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Arbete - Granchild 1
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="662b7211ed1ee-1211657721013110196-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="662b7211ed1ee-1211657721013110196-1__label" href="#" target="_top" id="662b7211ed1ee-1211657721013110196-1__label" data-uid="662b7211ed3a7">
        <br />
<b>Warning</b>:  The parameter <b>"icon"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Warning</b>:  The parameter <b>"size"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Deprecated</b>:  htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Component/BaseController.php</b> on line <b>418</b><br />
<!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Arbete - Granchild 2
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

      </ul>

      </li>

          
      <li id="662b7211ed0d0-8741079790361513935-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="662b7211ed0d0-8741079790361513935-1__label" href="#" target="_top" id="662b7211ed0d0-8741079790361513935-1__label" data-uid="662b7211ed49d">
        <br />
<b>Warning</b>:  The parameter <b>"icon"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Warning</b>:  The parameter <b>"size"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Deprecated</b>:  htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Component/BaseController.php</b> on line <b>418</b><br />
<!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Arbete - Child 2
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

      </ul>

      </li>

          
      <li id="662b7211ece89-682407225430556838-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="662b7211ece89-682407225430556838-1__label" href="#" target="_top" id="662b7211ece89-682407225430556838-1__label" data-uid="662b7211ed598">
        <br />
<b>Warning</b>:  The parameter <b>"icon"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Warning</b>:  The parameter <b>"size"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Deprecated</b>:  htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Component/BaseController.php</b> on line <b>418</b><br />
<!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Bo, bygga och miljö
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="662b7211ece89-6221513873846850678-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="662b7211ece89-6221513873846850678-2__label" href="#" target="_top" id="662b7211ece89-6221513873846850678-2__label" data-uid="662b7211ed672">
        <br />
<b>Warning</b>:  The parameter <b>"icon"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Warning</b>:  The parameter <b>"size"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Deprecated</b>:  htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Component/BaseController.php</b> on line <b>418</b><br />
<!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Förskola och utbildning
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="662b7211ece89-4692735264774017640-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="662b7211ece89-4692735264774017640-3__label" href="#" target="_top" id="662b7211ece89-4692735264774017640-3__label" data-uid="662b7211ed72a">
        <br />
<b>Warning</b>:  The parameter <b>"icon"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Warning</b>:  The parameter <b>"size"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Deprecated</b>:  htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Component/BaseController.php</b> on line <b>418</b><br />
<!-- 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" js-keep-in-viewport-after-resize="1" id="662b7211ed76b" data-uid="662b7211ed76b">
          
      <li id="662b7211ed76b-9041214281122288990-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="662b7211ed76b-9041214281122288990-0__label" href="#" target="_top" id="662b7211ed76b-9041214281122288990-0__label" data-uid="662b7211ed82c">
        <br />
<b>Warning</b>:  The parameter <b>"icon"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Warning</b>:  The parameter <b>"size"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Deprecated</b>:  htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Component/BaseController.php</b> on line <b>418</b><br />
<!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      About
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="662b7211ed76b-8985819446916401769-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="662b7211ed76b-8985819446916401769-1__label" href="#" target="_top" id="662b7211ed76b-8985819446916401769-1__label" data-uid="662b7211ed8d7">
        <br />
<b>Warning</b>:  The parameter <b>"icon"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Warning</b>:  The parameter <b>"size"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Deprecated</b>:  htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Component/BaseController.php</b> on line <b>418</b><br />
<!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Contact
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="662b7211ed76b-6741798444860054093-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="662b7211ed76b-6741798444860054093-2__label" href="#" target="_top" id="662b7211ed76b-6741798444860054093-2__label" data-uid="662b7211ed970">
        <br />
<b>Warning</b>:  The parameter <b>"icon"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Warning</b>:  The parameter <b>"size"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Deprecated</b>:  htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Component/BaseController.php</b> on line <b>418</b><br />
<!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Links
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="662b7211ed76b-1854317030632905091-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="662b7211ed76b-1854317030632905091-3__label" href="#" target="_top" id="662b7211ed76b-1854317030632905091-3__label" data-uid="662b7211eda07">
        <br />
<b>Warning</b>:  The parameter <b>"icon"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Warning</b>:  The parameter <b>"size"</b> in the <b>icon</b> component should be of type <b>"string"</b> but was recieved as type <b>"NULL"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<br />
<b>Deprecated</b>:  htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Component/BaseController.php</b> on line <b>418</b><br />
<!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      More info
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

      </ul>

      </li>

          
      <li id="662b7211ece89-2579108029807944214-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">
          
                      <br />
<b>Warning</b>:  The parameter <b>"icon"</b> in the <b>button</b> component should be of type <b>"string"</b> but was recieved as type <b>"boolean"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<a class="c-button c-nav__button c-button__filled c-button__filled--primary c-button--md" target="_top" aria-label="Omsorg och stöd" type="button" href="#" id="662b7211ece89 - 2579108029807944214-4__label" data-uid="662b7211edb7c">   
     <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-662b7211ee01d" type="button" aria-label="Open menu" data-uid="662b7211ee72f">   
     <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-symbols-outlined material-symbols-outlined--filled c-icon--size-md" aria-hidden="true" material-symbol="apps" role="img" aria-label="Icon: Undefined" alt="Icon: Undefined" data-nosnippet="" translate="no" data-uid="662b7211ee777">
            </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.
Settings location: /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Component/Fab/fab.json