2021-04-21 15:18:50 +02:00
|
|
|
<script>
|
2021-05-04 12:04:42 +02:00
|
|
|
import { setContext } from "svelte"
|
|
|
|
import "@spectrum-css/sidenav/dist/index-vars.css"
|
|
|
|
export let multilevel = false
|
|
|
|
setContext("sidenav-type", multilevel)
|
2021-04-21 15:18:50 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<nav>
|
|
|
|
<ul class="spectrum-SideNav" class:spectrum-SideNav--multiLevel={multilevel}>
|
|
|
|
<slot />
|
|
|
|
</ul>
|
2021-05-04 12:04:42 +02:00
|
|
|
</nav>
|