99 lines
2.6 KiB
Vue
99 lines
2.6 KiB
Vue
<script setup lang="ts">
|
|
import type { NavigationMenuItem } from '@nuxt/ui'
|
|
const route = useRoute()
|
|
const items = ref<NavigationMenuItem[][]>([
|
|
[
|
|
{
|
|
label: 'Guide',
|
|
icon: 'lucide-book-open',
|
|
},
|
|
{
|
|
label: 'Composables',
|
|
icon: 'lucide-database',
|
|
children: [
|
|
{
|
|
label: 'defineShortcuts',
|
|
icon: 'lucide-file-text',
|
|
description: 'Define shortcuts for your application.',
|
|
to: '/composables/define-shortcuts'
|
|
},
|
|
{
|
|
label: 'useOverlay',
|
|
icon: 'lucide-file-text',
|
|
description: 'Display a modal/slideover within your application.',
|
|
to: '/composables/use-overlay'
|
|
},
|
|
{
|
|
label: 'useToast',
|
|
icon: 'lucide-file-text',
|
|
description: 'Display a toast within your application.',
|
|
to: '/composables/use-toast'
|
|
}
|
|
]
|
|
},
|
|
{
|
|
label: 'Components',
|
|
icon: 'lucide-box',
|
|
to: '/components',
|
|
children: [
|
|
{
|
|
label: 'Link',
|
|
icon: 'lucide-file-text',
|
|
description: 'Use NuxtLink with superpowers.',
|
|
to: '/components/link'
|
|
},
|
|
{
|
|
label: 'Modal',
|
|
icon: 'lucide-file-text',
|
|
description: 'Display a modal within your application.',
|
|
to: '/components/modal'
|
|
},
|
|
{
|
|
label: 'NavigationMenu',
|
|
icon: 'lucide-file-text',
|
|
description: 'Display a list of links.',
|
|
to: '/components/navigation-menu'
|
|
},
|
|
{
|
|
label: 'Pagination',
|
|
icon: 'lucide-file-text',
|
|
description: 'Display a list of pages.',
|
|
to: '/components/pagination'
|
|
},
|
|
{
|
|
label: 'Popover',
|
|
icon: 'lucide-file-text',
|
|
description: 'Display a non-modal dialog that floats around a trigger element.',
|
|
to: '/components/popover'
|
|
},
|
|
{
|
|
label: 'Progress',
|
|
icon: 'lucide-file-text',
|
|
description: 'Show a horizontal bar to indicate task progression.',
|
|
to: '/components/progress'
|
|
}
|
|
]
|
|
}
|
|
],
|
|
// [
|
|
// {
|
|
// label: 'GitHub',
|
|
// icon: 'i-simple-icons-github',
|
|
// badge: '3.8k',
|
|
// to: 'https://github.com/nuxt/ui',
|
|
// target: '_blank',
|
|
// },
|
|
// {
|
|
// label: 'Help',
|
|
// icon: 'lucide-circle-help',
|
|
// badge: '3.8k',
|
|
// disabled: true
|
|
// }
|
|
// ]
|
|
])
|
|
</script>
|
|
|
|
<template>
|
|
<UNavigationMenu orientation="vertical" :items="items" class="w-full justify-center" color="primary" />
|
|
</template>
|