mirror of
https://github.com/nuxt/ui.git
synced 2026-09-14 19:51:10 +08:00
f6ae153428
Co-authored-by: Hugo Richard <hugo.richard@epitech.eu>
35 lines
612 B
Vue
35 lines
612 B
Vue
<script setup lang="ts">
|
|
import type { NavigationMenuItem } from '@nuxt/ui'
|
|
|
|
const items: NavigationMenuItem[] = [{
|
|
label: 'Home',
|
|
icon: 'i-lucide-house',
|
|
active: true
|
|
}, {
|
|
label: 'Inbox',
|
|
icon: 'i-lucide-inbox'
|
|
}, {
|
|
label: 'Contacts',
|
|
icon: 'i-lucide-users'
|
|
}]
|
|
|
|
const open = ref(true)
|
|
|
|
defineShortcuts({
|
|
o: () => open.value = !open.value
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<UDashboardSidebar v-model:open="open">
|
|
<template #header>
|
|
<LogoPro class="h-5 w-auto" />
|
|
</template>
|
|
|
|
<UNavigationMenu
|
|
:items="items"
|
|
orientation="vertical"
|
|
/>
|
|
</UDashboardSidebar>
|
|
</template>
|