Basic style sidebar
Last updated
Was this helpful?
Last updated
Was this helpful?
You can see a demo here: CodesandBox.
Basic style sidebar with dropdowns code:
<layout title="Dashboard"
sidebar-logo-url="/"
:sidebar-logo-image="require(`@/assets/images/vuelogo.png`)"
type="basic"
>
<template #headerRight>
Add your components here
</template>
<template #sidebar>
<sidebar-menu-item title="Small"
submenu-size="small"
>
<template #icon>
<img :src="require(`@/assets/images/expand.svg`)" />
</template>
<ul>
<li>
<a href="https://google.com">
Google
</a>
</li>
<li>
<a href="https://google.com">
Google
</a>
</li>
<li>
<a href="https://google.com">
Google
</a>
</li>
</ul>
</sidebar-menu-item>
<sidebar-menu-item title="Medium"
icon="someIcon"
submenu-size="medium"
>
<template #icon>
<img :src="require(`@/assets/images/expand.svg`)" />
</template>
</sidebar-menu-item>
<sidebar-menu-item title="Half Screen"
icon="someIcon"
submenu-size="half-screen"
>
<template #icon>
<img :src="require(`@/assets/images/expand.svg`)" />
</template>
</sidebar-menu-item>
<sidebar-menu-item title="Full screen"
icon="someIcon"
submenu-size="full-screen"
>
<template #icon>
<img :src="require(`@/assets/images/expand.svg`)" />
</template>
<ul>
<li>
<a href="https://google.com">
<img :src="require(`@/assets/images/expand.svg`)" /> Google
</a>
</li>
<li>
<a href="https://google.com">
Google
</a>
</li>
<li>
<a href="https://google.com">
Google
</a>
</li>
</ul>
</sidebar-menu-item>
</template>
Body content
</layout>