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="67edfbcb9211e">
<!-- 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="67edfbcb92435" data-uid="67edfbcb92435">
<li id="67edfbcb92435-7944992201785168446-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="67edfbcb92435-7944992201785168446-0__label" href="https://styleguide.getmunicipio.com" target="_top" id="67edfbcb92435-7944992201785168446-0__label" data-uid="67edfbcb92639">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
This site
</span>
</a>
</div>
</li>
<li id="67edfbcb92435-4103874129853236580-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="67edfbcb92435-4103874129853236580-1__label" href="https://google.com" target="_top" id="67edfbcb92435-4103874129853236580-1__label" data-uid="67edfbcb926fa">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Google
</span>
</a>
</div>
</li>
<li id="67edfbcb92435-2944782167112339028-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="67edfbcb92435-2944782167112339028-2__label" href="https://facebok.com" target="_top" id="67edfbcb92435-2944782167112339028-2__label" data-uid="67edfbcb92792">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Facebook
</span>
</a>
</div>
</li>
<li id="67edfbcb92435-4431006365614121626-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="67edfbcb92435-4431006365614121626-3__label" href="https://twitter.com" target="_top" id="67edfbcb92435-4431006365614121626-3__label" data-uid="67edfbcb92850">
<!-- 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="67edfbcb928a4">
<!-- 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="67edfbcb928d0" data-uid="67edfbcb928d0">
<li id="67edfbcb928d0-1661268880097160187-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="67edfbcb928d0-1661268880097160187-0__label" href="https://styleguide.getmunicipio.com" target="_top" id="67edfbcb928d0-1661268880097160187-0__label" data-uid="67edfbcb92979">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
This site
</span>
</a>
</div>
</li>
<li id="67edfbcb928d0-5618192054595861518-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="67edfbcb928d0-5618192054595861518-1__label" href="https://google.com" target="_top" id="67edfbcb928d0-5618192054595861518-1__label" data-uid="67edfbcb92a0c">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Google
</span>
</a>
</div>
</li>
<li id="67edfbcb928d0-3632113322398310540-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="67edfbcb928d0-3632113322398310540-2__label" href="https://facebok.com" target="_top" id="67edfbcb928d0-3632113322398310540-2__label" data-uid="67edfbcb92ab3">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Facebook
</span>
</a>
</div>
</li>
<li id="67edfbcb928d0-8989840279494780238-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="67edfbcb928d0-8989840279494780238-3__label" href="https://twitter.com" target="_top" id="67edfbcb928d0-8989840279494780238-3__label" data-uid="67edfbcb92b35">
<!-- 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="67edfbcb92efc">
<!-- 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="67edfbcb92f34" data-uid="67edfbcb92f34">
<li id="67edfbcb92f34-6677309940741970385-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="67edfbcb92f34-6677309940741970385-0__label" href="https://styleguide.getmunicipio.com" target="_top" id="67edfbcb92f34-6677309940741970385-0__label" data-uid="67edfbcb92ff9">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
This site
</span>
</a>
</div>
</li>
<li id="67edfbcb92f34-1370286648156423842-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="67edfbcb92f34-1370286648156423842-1__label" href="https://google.com" target="_top" id="67edfbcb92f34-1370286648156423842-1__label" data-uid="67edfbcb9309e">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Google
</span>
</a>
</div>
</li>
<li id="67edfbcb92f34-7286127664858039636-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="67edfbcb92f34-7286127664858039636-2__label" href="https://facebok.com" target="_top" id="67edfbcb92f34-7286127664858039636-2__label" data-uid="67edfbcb93133">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Facebook
</span>
</a>
</div>
</li>
<li id="67edfbcb92f34-9095799957910779058-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="67edfbcb92f34-9095799957910779058-3__label" href="https://twitter.com" target="_top" id="67edfbcb92f34-9095799957910779058-3__label" data-uid="67edfbcb931c2">
<!-- 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="67edfbcb93211">
<!-- 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="67edfbcb93245" data-uid="67edfbcb93245">
<li id="67edfbcb93245-4643706143614731773-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="67edfbcb93245-4643706143614731773-0__label" href="https://styleguide.getmunicipio.com" target="_top" id="67edfbcb93245-4643706143614731773-0__label" data-uid="67edfbcb932ea">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
This site
</span>
</a>
</div>
</li>
<li id="67edfbcb93245-9187131664985374505-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="67edfbcb93245-9187131664985374505-1__label" href="https://google.com" target="_top" id="67edfbcb93245-9187131664985374505-1__label" data-uid="67edfbcb9337a">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Google
</span>
</a>
</div>
</li>
<li id="67edfbcb93245-716598266724213209-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="67edfbcb93245-716598266724213209-2__label" href="https://facebok.com" target="_top" id="67edfbcb93245-716598266724213209-2__label" data-uid="67edfbcb93405">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Facebook
</span>
</a>
</div>
</li>
<li id="67edfbcb93245-8515968416938579551-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="67edfbcb93245-8515968416938579551-3__label" href="https://twitter.com" target="_top" id="67edfbcb93245-8515968416938579551-3__label" data-uid="67edfbcb9348f">
<!-- 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="67edfbcb934da">
<!-- 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="67edfbcb93503" data-uid="67edfbcb93503">
<li id="67edfbcb93503-4282095496616713609-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="67edfbcb93503-4282095496616713609-0__label" href="https://styleguide.getmunicipio.com" target="_top" id="67edfbcb93503-4282095496616713609-0__label" data-uid="67edfbcb935a5">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
This site
</span>
</a>
</div>
</li>
<li id="67edfbcb93503-8620786795290287014-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="67edfbcb93503-8620786795290287014-1__label" href="https://google.com" target="_top" id="67edfbcb93503-8620786795290287014-1__label" data-uid="67edfbcb9363b">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Google
</span>
</a>
</div>
</li>
<li id="67edfbcb93503-7786673045483771492-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="67edfbcb93503-7786673045483771492-2__label" href="https://facebok.com" target="_top" id="67edfbcb93503-7786673045483771492-2__label" data-uid="67edfbcb936c5">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Facebook
</span>
</a>
</div>
</li>
<li id="67edfbcb93503-7192898106235884660-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="67edfbcb93503-7192898106235884660-3__label" href="https://twitter.com" target="_top" id="67edfbcb93503-7192898106235884660-3__label" data-uid="67edfbcb93750">
<!-- 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="67edfbcb9379a">
<!-- 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="67edfbcb937c3" data-uid="67edfbcb937c3">
<li id="67edfbcb937c3-4011465771837581778-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="67edfbcb937c3-4011465771837581778-0__label" href="https://styleguide.getmunicipio.com" target="_top" id="67edfbcb937c3-4011465771837581778-0__label" data-uid="67edfbcb93864">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
This site
</span>
</a>
</div>
</li>
<li id="67edfbcb937c3-6121583901051391394-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="67edfbcb937c3-6121583901051391394-1__label" href="https://google.com" target="_top" id="67edfbcb937c3-6121583901051391394-1__label" data-uid="67edfbcb938f1">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Google
</span>
</a>
</div>
</li>
<li id="67edfbcb937c3-8381045263430709874-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="67edfbcb937c3-8381045263430709874-2__label" href="https://facebok.com" target="_top" id="67edfbcb937c3-8381045263430709874-2__label" data-uid="67edfbcb93985">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Facebook
</span>
</a>
</div>
</li>
<li id="67edfbcb937c3-8185815629824349631-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="67edfbcb937c3-8185815629824349631-3__label" href="https://twitter.com" target="_top" id="67edfbcb937c3-8185815629824349631-3__label" data-uid="67edfbcb93a0d">
<!-- 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="67edfbcb93a53">
<!-- 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="67edfbcb93a79" data-uid="67edfbcb93a79">
<li id="67edfbcb93a79-7116879679656351104-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="67edfbcb93a79-7116879679656351104-0__label" href="https://styleguide.getmunicipio.com" target="_top" id="67edfbcb93a79-7116879679656351104-0__label" data-uid="67edfbcb93b10">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
This site
</span>
</a>
</div>
</li>
<li id="67edfbcb93a79-4959217440899848032-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="67edfbcb93a79-4959217440899848032-1__label" href="https://google.com" target="_top" id="67edfbcb93a79-4959217440899848032-1__label" data-uid="67edfbcb93b96">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Google
</span>
</a>
</div>
</li>
<li id="67edfbcb93a79-4848543917941494007-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="67edfbcb93a79-4848543917941494007-2__label" href="https://facebok.com" target="_top" id="67edfbcb93a79-4848543917941494007-2__label" data-uid="67edfbcb93c2e">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Facebook
</span>
</a>
</div>
</li>
<li id="67edfbcb93a79-3278055997741517782-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="67edfbcb93a79-3278055997741517782-3__label" href="https://twitter.com" target="_top" id="67edfbcb93a79-3278055997741517782-3__label" data-uid="67edfbcb93cb6">
<!-- 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="67edfbcb93fce">
<!-- 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="67edfbcb94003" data-uid="67edfbcb94003">
<li id="67edfbcb94003-1998403256268359331-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="67edfbcb94003-1998403256268359331-0__label" href="https://google.com" target="_top" id="67edfbcb94003-1998403256268359331-0__label" data-uid="67edfbcb940cc">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Google
</span>
</a>
</div>
</li>
<li id="67edfbcb94003-5278537600570837004-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="67edfbcb94003-5278537600570837004-1__label" href="https://styleguide.getmunicipio.com" target="_top" id="67edfbcb94003-5278537600570837004-1__label" data-uid="67edfbcb94168">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
This site
</span>
</a>
</div>
</li>
<li id="67edfbcb94003-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="67edfbcb94224">
<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="67edfbcb9426a">
</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="67edfbcb942c5" data-uid="67edfbcb942c5">
<li id="67edfbcb942c5-9209120392902097021-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="67edfbcb942c5-9209120392902097021-0__label" href="https://facebok.com" target="_top" id="67edfbcb942c5-9209120392902097021-0__label" data-uid="67edfbcb9436d">
<!-- icon.blade.php -->
<span
class="c-nav__text"
style="">
Facebook
</span>
</a>
</div>
</li>
<li id="67edfbcb942c5-3763939356043069926-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="67edfbcb942c5-3763939356043069926-1__label" href="https://twitter.com" target="_top" id="67edfbcb942c5-3763939356043069926-1__label" data-uid="67edfbcb94400">
<!-- 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. |