mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
23 lines
542 B
Vue
23 lines
542 B
Vue
<script setup lang="ts">
|
|
const route = useRoute()
|
|
|
|
const links = [{
|
|
label: 'Horizontal Navigation',
|
|
to: `${route.path.startsWith('/dev') ? '/dev' : ''}/components/horizontal-navigation`
|
|
}, {
|
|
label: 'Command Palette',
|
|
to: '/components/command-palette'
|
|
}, {
|
|
label: 'Table',
|
|
to: '/components/table'
|
|
}]
|
|
</script>
|
|
|
|
<template>
|
|
<UHorizontalNavigation :links="links">
|
|
<template #default="{ link }">
|
|
<span class="group-hover:text-primary relative">{{ link.label }}</span>
|
|
</template>
|
|
</UHorizontalNavigation>
|
|
</template>
|