Skip to content

Commit

Permalink
Merge pull request #1 from lpheller/navigation-slots
Browse files Browse the repository at this point in the history
Navigation slots
  • Loading branch information
cbl authored Oct 9, 2020
2 parents a7be1e3 + 8d4558f commit 7cce546
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions views/nav-list.blade.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
<nav class="lit-nav-list
@if($class) {{ $class }} @endif
@if($layout == 'horizontal') lit-nav-list--horizontal @endif
@if($expandable) lit-nav-list--expandable @endif
@if($dropdown) lit-nav-list--dropdown @endif
">
<ul>
@props([
'styles' => [
'defaut' => ' lit-nav-list ',
'layout' => $layout ? ' lit-nav-list--'. $layout : '',
'expandable' => $expandable ? ' lit-nav-list--expandable' : '',
'dropdown' => $dropdown ? ' lit-nav-list--dropdown' : ''
]
])
<nav class="{{ $class . implode('', $styles) }}">
<ul class="lit-nav-list__level-1">
@include('bladesmith::partials.nav_level',[
'items' => $list,
'active_class' => $active_class,
])
{!! $slot !!}
</ul>
</nav>

Expand Down

0 comments on commit 7cce546

Please sign in to comment.