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

View File

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

View File

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

View File

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

View File

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