mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-30 11:47:55 +01:00
docs(app): display icon in navigation for ui-pro components
This commit is contained in:
@@ -80,7 +80,13 @@ defineShortcuts({
|
|||||||
<FrameworkSelect />
|
<FrameworkSelect />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<UContentNavigation :navigation="navigation" highlight />
|
<UContentNavigation :navigation="navigation" highlight>
|
||||||
|
<template #link-title="{ link }">
|
||||||
|
{{ link.title }}
|
||||||
|
|
||||||
|
<UIcon v-if="link.module === 'ui-pro' && link.path.startsWith('/components')" name="i-lucide-boxes" class="size-3 align-middle mb-[3px] text-(--ui-text-dimmed)" />
|
||||||
|
</template>
|
||||||
|
</UContentNavigation>
|
||||||
</template>
|
</template>
|
||||||
</UHeader>
|
</UHeader>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -17,7 +17,15 @@ const navigation = inject<Ref<ContentNavigationItem[]>>('navigation')
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<UContentNavigation :navigation="navigation" highlight />
|
<UContentNavigation :navigation="navigation" highlight>
|
||||||
|
<template #link-title="{ link }">
|
||||||
|
{{ link.title }}
|
||||||
|
|
||||||
|
<UTooltip v-if="link.module === 'ui-pro' && link.path.startsWith('/components')" text="Only available in nuxt/ui-pro" :content="{ side: 'right' }">
|
||||||
|
<UIcon name="i-lucide-boxes" class="size-3 align-middle mb-[3px] text-(--ui-text-dimmed) hover:text-(--ui-text-muted) transition-colors" />
|
||||||
|
</UTooltip>
|
||||||
|
</template>
|
||||||
|
</UContentNavigation>
|
||||||
</UPageAside>
|
</UPageAside>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user