mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
116 lines
2.8 KiB
Vue
116 lines
2.8 KiB
Vue
<script setup lang="ts">
|
|
const items = [
|
|
{
|
|
label: 'Guide',
|
|
icon: 'i-lucide-book-open',
|
|
children: [
|
|
{
|
|
label: 'Introduction',
|
|
description: 'Fully styled and customizable components for Nuxt.',
|
|
icon: 'i-lucide-house'
|
|
},
|
|
{
|
|
label: 'Installation',
|
|
description: 'Learn how to install and configure Nuxt UI in your application.',
|
|
icon: 'i-lucide-cloud-download'
|
|
},
|
|
{
|
|
label: 'Icons',
|
|
icon: 'i-lucide-smile',
|
|
description: 'You have nothing to do, @nuxt/icon will handle it automatically.'
|
|
},
|
|
{
|
|
label: 'Colors',
|
|
icon: 'i-lucide-swatch-book',
|
|
description: 'Choose a primary and a neutral color from your Tailwind CSS theme.'
|
|
},
|
|
{
|
|
label: 'Theme',
|
|
icon: 'i-lucide-cog',
|
|
description: 'You can customize components by using the `class` / `ui` props or in your app.config.ts.'
|
|
}
|
|
]
|
|
},
|
|
{
|
|
label: 'Composables',
|
|
icon: 'i-lucide-database',
|
|
children: [
|
|
{
|
|
label: 'defineShortcuts',
|
|
icon: 'i-lucide-file-text',
|
|
description: 'Define shortcuts for your application.'
|
|
},
|
|
{
|
|
label: 'useModal',
|
|
icon: 'i-lucide-file-text',
|
|
description: 'Display a modal within your application.'
|
|
},
|
|
{
|
|
label: 'useSlideover',
|
|
icon: 'i-lucide-file-text',
|
|
description: 'Display a slideover within your application.'
|
|
},
|
|
{
|
|
label: 'useToast',
|
|
icon: 'i-lucide-file-text',
|
|
description: 'Display a toast within your application.'
|
|
}
|
|
]
|
|
},
|
|
{
|
|
label: 'Components',
|
|
icon: 'i-lucide-box',
|
|
children: [
|
|
{
|
|
label: 'Link',
|
|
icon: 'i-lucide-file-text',
|
|
description: 'Use NuxtLink with superpowers.'
|
|
},
|
|
{
|
|
label: 'Modal',
|
|
icon: 'i-lucide-file-text',
|
|
description: 'Display a modal within your application.'
|
|
},
|
|
{
|
|
label: 'NavigationMenu',
|
|
icon: 'i-lucide-file-text',
|
|
description: 'Display a list of links.'
|
|
},
|
|
{
|
|
label: 'Pagination',
|
|
icon: 'i-lucide-file-text',
|
|
description: 'Display a list of pages.'
|
|
},
|
|
{
|
|
label: 'Popover',
|
|
icon: 'i-lucide-file-text',
|
|
description: 'Display a non-modal dialog that floats around a trigger element.'
|
|
},
|
|
{
|
|
label: 'Progress',
|
|
icon: 'i-lucide-file-text',
|
|
description: 'Show a horizontal bar to indicate task progression.'
|
|
}
|
|
]
|
|
}
|
|
]
|
|
|
|
const active = ref()
|
|
|
|
defineShortcuts({
|
|
1: () => {
|
|
active.value = '0'
|
|
},
|
|
2: () => {
|
|
active.value = '1'
|
|
},
|
|
3: () => {
|
|
active.value = '2'
|
|
}
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<UNavigationMenu v-model="active" :items="items" class="justify-center" />
|
|
</template>
|