Site selector

A component that will display available sites in a network, or represent a variarity of customer types (business, private).

Siteselector with default color schemes

<div class="u-padding--2">
      <div class="c-siteselector c-siteselector--radius-full c-siteselector--primary" data-uid="678b077c8c87a">
        <!-- nav.blade.php -->
 
  <ul class="c-nav c-siteselector__items c-nav--depth-1 unlist c-nav--horizontal" aria-orientation="horizontal" role="menu" js-keep-in-viewport-after-resize="1" id="678b077c8c90a" data-uid="678b077c8c90a">
          
      <li id="678b077c8c90a-790243362791805474-0__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1 is-current" role="menuitem" data-depth="1" aria-label="This site">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8c90a-790243362791805474-0__label" href="https://styleguide.getmunicipio.com" target="_top" id="678b077c8c90a-790243362791805474-0__label" data-uid="678b077c8cb22">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      This site
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8c90a-6990824324684092518-1__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Google">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8c90a-6990824324684092518-1__label" href="https://google.com" target="_top" id="678b077c8c90a-6990824324684092518-1__label" data-uid="678b077c8cbdb">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Google
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8c90a-9041201208386491472-2__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Facebook">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8c90a-9041201208386491472-2__label" href="https://facebok.com" target="_top" id="678b077c8c90a-9041201208386491472-2__label" data-uid="678b077c8cc73">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Facebook
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8c90a-2501992332545183755-3__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Twitter">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8c90a-2501992332545183755-3__label" href="https://twitter.com" target="_top" id="678b077c8c90a-2501992332545183755-3__label" data-uid="678b077c8cd04">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Twitter
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

      </ul>
</div></div>
<div class="u-padding--2">
      <div class="c-siteselector c-siteselector--radius-full c-siteselector--secondary" data-uid="678b077c8cd65">
        <!-- nav.blade.php -->
 
  <ul class="c-nav c-siteselector__items c-nav--depth-1 unlist c-nav--horizontal" aria-orientation="horizontal" role="menu" js-keep-in-viewport-after-resize="1" id="678b077c8cd92" data-uid="678b077c8cd92">
          
      <li id="678b077c8cd92-1304112342182835653-0__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1 is-current" role="menuitem" data-depth="1" aria-label="This site">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8cd92-1304112342182835653-0__label" href="https://styleguide.getmunicipio.com" target="_top" id="678b077c8cd92-1304112342182835653-0__label" data-uid="678b077c8ce3e">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      This site
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8cd92-5883637748817011726-1__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Google">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8cd92-5883637748817011726-1__label" href="https://google.com" target="_top" id="678b077c8cd92-5883637748817011726-1__label" data-uid="678b077c8ced1">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Google
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8cd92-6310485131921001103-2__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Facebook">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8cd92-6310485131921001103-2__label" href="https://facebok.com" target="_top" id="678b077c8cd92-6310485131921001103-2__label" data-uid="678b077c8cf5f">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Facebook
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8cd92-3693467668376182490-3__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Twitter">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8cd92-3693467668376182490-3__label" href="https://twitter.com" target="_top" id="678b077c8cd92-3693467668376182490-3__label" data-uid="678b077c8cfea">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Twitter
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

      </ul>
</div></div>
@foreach(['primary', 'secondary'] as $color)
<div class="u-padding--2">
  @siteselector([
    'color' => $color,
    'items' => [
      ['label' => 'This site', 'href' => 'https://' . $_SERVER['HTTP_HOST']],
      ['label' => 'Google', 'href' => 'https://google.com'],
      ['label' => 'Facebook', 'href' => 'https://facebok.com'],
      ['label' => 'Twitter', 'href' => 'https://twitter.com']
    ]
  ])
  @endsiteselector
</div>
@endforeach

Siteselector with different radiuses

<div class="u-padding--2">
      <div class="c-siteselector c-siteselector--radius-xs c-siteselector--primary" data-uid="678b077c8d08c">
        <!-- nav.blade.php -->
 
  <ul class="c-nav c-siteselector__items c-nav--depth-1 unlist c-nav--horizontal" aria-orientation="horizontal" role="menu" js-keep-in-viewport-after-resize="1" id="678b077c8d0b7" data-uid="678b077c8d0b7">
          
      <li id="678b077c8d0b7-288760678646957318-0__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1 is-current" role="menuitem" data-depth="1" aria-label="This site">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8d0b7-288760678646957318-0__label" href="https://styleguide.getmunicipio.com" target="_top" id="678b077c8d0b7-288760678646957318-0__label" data-uid="678b077c8d171">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      This site
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8d0b7-9073046811467670816-1__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Google">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8d0b7-9073046811467670816-1__label" href="https://google.com" target="_top" id="678b077c8d0b7-9073046811467670816-1__label" data-uid="678b077c8d202">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Google
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8d0b7-1004041803812719206-2__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Facebook">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8d0b7-1004041803812719206-2__label" href="https://facebok.com" target="_top" id="678b077c8d0b7-1004041803812719206-2__label" data-uid="678b077c8d28e">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Facebook
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8d0b7-9109222186722195972-3__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Twitter">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8d0b7-9109222186722195972-3__label" href="https://twitter.com" target="_top" id="678b077c8d0b7-9109222186722195972-3__label" data-uid="678b077c8d317">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Twitter
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

      </ul>
</div></div>
<div class="u-padding--2">
      <div class="c-siteselector c-siteselector--radius-sm c-siteselector--primary" data-uid="678b077c8d363">
        <!-- nav.blade.php -->
 
  <ul class="c-nav c-siteselector__items c-nav--depth-1 unlist c-nav--horizontal" aria-orientation="horizontal" role="menu" js-keep-in-viewport-after-resize="1" id="678b077c8d38b" data-uid="678b077c8d38b">
          
      <li id="678b077c8d38b-3426265376015220788-0__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1 is-current" role="menuitem" data-depth="1" aria-label="This site">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8d38b-3426265376015220788-0__label" href="https://styleguide.getmunicipio.com" target="_top" id="678b077c8d38b-3426265376015220788-0__label" data-uid="678b077c8d42f">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      This site
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8d38b-1061031359002664996-1__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Google">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8d38b-1061031359002664996-1__label" href="https://google.com" target="_top" id="678b077c8d38b-1061031359002664996-1__label" data-uid="678b077c8d4bd">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Google
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8d38b-6895485174391908540-2__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Facebook">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8d38b-6895485174391908540-2__label" href="https://facebok.com" target="_top" id="678b077c8d38b-6895485174391908540-2__label" data-uid="678b077c8d555">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Facebook
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8d38b-3393017796632825096-3__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Twitter">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8d38b-3393017796632825096-3__label" href="https://twitter.com" target="_top" id="678b077c8d38b-3393017796632825096-3__label" data-uid="678b077c8d5de">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Twitter
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

      </ul>
</div></div>
<div class="u-padding--2">
      <div class="c-siteselector c-siteselector--radius-md c-siteselector--primary" data-uid="678b077c8d628">
        <!-- nav.blade.php -->
 
  <ul class="c-nav c-siteselector__items c-nav--depth-1 unlist c-nav--horizontal" aria-orientation="horizontal" role="menu" js-keep-in-viewport-after-resize="1" id="678b077c8d651" data-uid="678b077c8d651">
          
      <li id="678b077c8d651-633547099167248324-0__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1 is-current" role="menuitem" data-depth="1" aria-label="This site">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8d651-633547099167248324-0__label" href="https://styleguide.getmunicipio.com" target="_top" id="678b077c8d651-633547099167248324-0__label" data-uid="678b077c8d6f2">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      This site
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8d651-8285801709379898665-1__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Google">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8d651-8285801709379898665-1__label" href="https://google.com" target="_top" id="678b077c8d651-8285801709379898665-1__label" data-uid="678b077c8d783">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Google
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8d651-1021203290102048672-2__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Facebook">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8d651-1021203290102048672-2__label" href="https://facebok.com" target="_top" id="678b077c8d651-1021203290102048672-2__label" data-uid="678b077c8d80d">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Facebook
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8d651-6644069942788394322-3__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Twitter">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8d651-6644069942788394322-3__label" href="https://twitter.com" target="_top" id="678b077c8d651-6644069942788394322-3__label" data-uid="678b077c8d895">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Twitter
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

      </ul>
</div></div>
<div class="u-padding--2">
      <div class="c-siteselector c-siteselector--radius-lg c-siteselector--primary" data-uid="678b077c8d8e0">
        <!-- nav.blade.php -->
 
  <ul class="c-nav c-siteselector__items c-nav--depth-1 unlist c-nav--horizontal" aria-orientation="horizontal" role="menu" js-keep-in-viewport-after-resize="1" id="678b077c8d914" data-uid="678b077c8d914">
          
      <li id="678b077c8d914-6122970115354342047-0__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1 is-current" role="menuitem" data-depth="1" aria-label="This site">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8d914-6122970115354342047-0__label" href="https://styleguide.getmunicipio.com" target="_top" id="678b077c8d914-6122970115354342047-0__label" data-uid="678b077c8d9b8">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      This site
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8d914-3542628302125890678-1__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Google">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8d914-3542628302125890678-1__label" href="https://google.com" target="_top" id="678b077c8d914-3542628302125890678-1__label" data-uid="678b077c8da47">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Google
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8d914-3808460960396478755-2__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Facebook">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8d914-3808460960396478755-2__label" href="https://facebok.com" target="_top" id="678b077c8d914-3808460960396478755-2__label" data-uid="678b077c8dad0">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Facebook
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8d914-6936791893109898908-3__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Twitter">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8d914-6936791893109898908-3__label" href="https://twitter.com" target="_top" id="678b077c8d914-6936791893109898908-3__label" data-uid="678b077c8db57">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Twitter
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

      </ul>
</div></div>
<div class="u-padding--2">
      <div class="c-siteselector c-siteselector--radius-pill c-siteselector--primary" data-uid="678b077c8dba4">
        <!-- nav.blade.php -->
 
  <ul class="c-nav c-siteselector__items c-nav--depth-1 unlist c-nav--horizontal" aria-orientation="horizontal" role="menu" js-keep-in-viewport-after-resize="1" id="678b077c8dbcc" data-uid="678b077c8dbcc">
          
      <li id="678b077c8dbcc-2241432049287124016-0__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1 is-current" role="menuitem" data-depth="1" aria-label="This site">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8dbcc-2241432049287124016-0__label" href="https://styleguide.getmunicipio.com" target="_top" id="678b077c8dbcc-2241432049287124016-0__label" data-uid="678b077c8dc6c">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      This site
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8dbcc-5210074907376585767-1__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Google">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8dbcc-5210074907376585767-1__label" href="https://google.com" target="_top" id="678b077c8dbcc-5210074907376585767-1__label" data-uid="678b077c8dd04">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Google
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8dbcc-1457123779900917090-2__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Facebook">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8dbcc-1457123779900917090-2__label" href="https://facebok.com" target="_top" id="678b077c8dbcc-1457123779900917090-2__label" data-uid="678b077c8dd8e">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Facebook
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8dbcc-4329619980280275687-3__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Twitter">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8dbcc-4329619980280275687-3__label" href="https://twitter.com" target="_top" id="678b077c8dbcc-4329619980280275687-3__label" data-uid="678b077c8de14">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Twitter
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

      </ul>
</div></div>
@foreach(['xs', 'sm', 'md', 'lg', 'pill'] as $radius)
<div class="u-padding--2">
  @siteselector([
    'radius' => $radius,
    'items' => [
      ['label' => 'This site', 'href' => 'https://' . $_SERVER['HTTP_HOST']],
      ['label' => 'Google', 'href' => 'https://google.com'],
      ['label' => 'Facebook', 'href' => 'https://facebok.com'],
      ['label' => 'Twitter', 'href' => 'https://twitter.com']
    ]
  ])
  @endsiteselector
</div>
@endforeach

Siteselector - Many options (overflowing)

<div style="min-height: 500px;">
      <div class="c-siteselector c-siteselector--radius-full c-siteselector--primary" data-uid="678b077c8deb1">
        <!-- nav.blade.php -->
 
  <ul class="c-nav c-siteselector__items c-nav--depth-1 unlist c-nav--horizontal" aria-orientation="horizontal" role="menu" js-keep-in-viewport-after-resize="1" id="678b077c8deda" data-uid="678b077c8deda">
          
      <li id="678b077c8deda-2652587834278871120-0__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1" role="menuitem" data-depth="1" aria-label="Google">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8deda-2652587834278871120-0__label" href="https://google.com" target="_top" id="678b077c8deda-2652587834278871120-0__label" data-uid="678b077c8df86">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Google
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8deda-3780565589940950183-1__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-1 is-current" role="menuitem" data-depth="1" aria-label="This site">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8deda-3780565589940950183-1__label" href="https://styleguide.getmunicipio.com" target="_top" id="678b077c8deda-3780565589940950183-1__label" data-uid="678b077c8e014">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      This site
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8deda-expand-2__item" class="c-siteselector__more c-nav__item c-nav__item--default c-nav__item--depth-1 has-fetched has-children has-toggle" role="menuitem" data-depth="1" aria-label="">
        
        <div class="c-nav__item-wrapper">
          
                      <!-- Hidden link: Both label and icon is missing -->
          
          
          <button class="c-button c-nav__toggle  c-button__basic c-button__basic--default c-button--md c-button--icon-only" target="_top" aria-label="Expand" type="button" data-uid="678b077c8e0bd">   
     <span class="c-button__label">                     <span class="c-button__loader"></span>
                            <span class="c-button__label-icon ">
                    <!-- icon.blade.php -->
    <span class="c-icon c-icon--expand-more c-icon--material c-icon--material-expand_more material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="expand_more" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="678b077c8e10f">
                    </span>
            </span>
        
        
    </span> </button>        </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="678b077c8e16d" data-uid="678b077c8e16d">
          
      <li id="678b077c8e16d-1400161802951452045-0__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-2" role="menuitem" data-depth="2" aria-label="Facebook">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8e16d-1400161802951452045-0__label" href="https://facebok.com" target="_top" id="678b077c8e16d-1400161802951452045-0__label" data-uid="678b077c8e210">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Facebook
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

          
      <li id="678b077c8e16d-5992662283001238569-1__item" class="c-siteselector__item c-nav__item c-nav__item--default c-nav__item--depth-2" role="menuitem" data-depth="2" aria-label="Twitter">
        
        <div class="c-nav__item-wrapper">
          
                      <a class="c-link c-nav__link" id="678b077c8e16d-5992662283001238569-1__label" href="https://twitter.com" target="_top" id="678b077c8e16d-5992662283001238569-1__label" data-uid="678b077c8e2a1">
        <!-- icon.blade.php -->
        <span 
      class="c-nav__text" 
      style="">
      Twitter
    </span>
    </a>
          
          
                  </div>

        
        
      </li>

      </ul>

      </li>

      </ul>
</div></div>
<div style="min-height: 500px;">
  @siteselector([
    'items' => [
      ['label' => 'Google', 'href' => 'https://google.com'],
      ['label' => 'This site', 'href' => 'https://' . $_SERVER['HTTP_HOST']],
      ['label' => 'Facebook', 'href' => 'https://facebok.com'],
      ['label' => 'Twitter', 'href' => 'https://twitter.com']
    ],
    'maxItems' => 2
  ])
  @endsiteselector
</div>

Blade component parameters

Key Default value Type Available values Description
element div string - What element the container will use.
items [] array - Nav menu items
maxItems false boolean - The number of items to display before folding to a dropdown.
showMoreLabel string - Te label of show more button.
radius full string - Amount of radius (xs, sm, md, lg, full)
color primary string - Primary or secondary color.
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/Siteselector/siteselector.json