mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-31 12:17:54 +01:00
feat(NavigationMenu): rename links to items + improve slots
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
const links = [
|
||||
const items = [
|
||||
[{
|
||||
label: 'Profile',
|
||||
active: true,
|
||||
@@ -37,8 +37,8 @@ const links = [
|
||||
|
||||
<template>
|
||||
<div class="flex flex-col gap-12 w-full max-w-4xl">
|
||||
<UNavigationMenu :links="links" class="border-b border-gray-200 dark:border-gray-800" />
|
||||
<UNavigationMenu :items="items" class="border-b border-gray-200 dark:border-gray-800" />
|
||||
|
||||
<UNavigationMenu :links="links" orientation="vertical" class="w-48" />
|
||||
<UNavigationMenu :items="items" orientation="vertical" class="w-48" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user