mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-18 05:58:07 +01:00
49 lines
746 B
Markdown
49 lines
746 B
Markdown
---
|
|
github: true
|
|
description: Display a vertical navigation.
|
|
---
|
|
|
|
## Usage
|
|
|
|
::component-example
|
|
#default
|
|
:vertical-navigation-example
|
|
|
|
#code
|
|
```vue
|
|
<script setup>
|
|
const links = [{
|
|
label: 'Profile',
|
|
avatar: {
|
|
src: 'https://avatars.githubusercontent.com/u/739984?v=4'
|
|
},
|
|
badge: 100
|
|
}, {
|
|
label: 'Installation',
|
|
icon: 'i-heroicons-home',
|
|
to: '/getting-started/installation'
|
|
}, {
|
|
label: 'Vertical Navigation',
|
|
icon: 'i-heroicons-chart-bar',
|
|
to: '/navigation/vertical-navigation'
|
|
}, {
|
|
label: 'Command Palette',
|
|
icon: 'i-heroicons-command-line',
|
|
to: '/navigation/command-palette'
|
|
}]
|
|
</script>
|
|
|
|
<template>
|
|
<UVerticalNavigation :links="links" />
|
|
</template>
|
|
```
|
|
::
|
|
|
|
## Props
|
|
|
|
:component-props
|
|
|
|
## Preset
|
|
|
|
:component-preset
|