docs: add alpha label

This commit is contained in:
zernonia 2023-12-05 19:18:29 +08:00
parent f8b37182f8
commit 1d17ffa6f9
5 changed files with 14 additions and 5 deletions

View File

@ -28,7 +28,7 @@ const sourceLink = 'https://github.com/radix-vue/shadcn-vue/tree/dev/'
>
{{ docsGroup.title }}
<Badge v-if="docsGroup.label" class="ml-2" :variant="'secondary'">
<Badge v-if="docsGroup.label" class="ml-2">
{{ docsGroup.label }}
</Badge>
</h4>
@ -49,7 +49,7 @@ const sourceLink = 'https://github.com/radix-vue/shadcn-vue/tree/dev/'
>
{{ doc.title }}
<Badge v-if="doc.label" class="ml-2" :variant="'secondary'">
<Badge v-if="doc.label" class="ml-2">
{{ doc.label }}
</Badge>
</a>
@ -76,9 +76,14 @@ const sourceLink = 'https://github.com/radix-vue/shadcn-vue/tree/dev/'
</div>
<div class="space-y-2">
<div class="flex items-center space-x-4">
<h1 class="scroll-m-20 text-4xl font-bold tracking-tight">
{{ frontmatter.title }}
</h1>
<Badge v-if="frontmatter.label">
{{ frontmatter.label }}
</Badge>
</div>
<p class="text-lg text-muted-foreground">
{{ frontmatter.description }}
</p>

View File

@ -1,6 +1,7 @@
---
title: Area
description: Displays a callout for user attention.
label: Alpha
---

View File

@ -1,6 +1,7 @@
---
title: Bar
description: Displays a callout for user attention.
label: Alpha
---

View File

@ -1,6 +1,7 @@
---
title: Donut
description: Displays a callout for user attention.
label: Alpha
---

View File

@ -1,6 +1,7 @@
---
title: Line
description: Displays a callout for user attention.
label: Alpha
---