shadcn-vue/apps/www/src/content/docs/components/label.md
2023-09-20 14:19:08 +08:00

774 B

title description source primitive
Label Renders an accessible label associated with controls. apps/www/src/lib/registry/default/ui/label https://www.radix-vue.com/components/label.html

Installation

npx shadcn-vue@latest add label

<template #Manual>

Install the following dependency:

npm install radix-vue

Copy and paste the following code into your project:

<<< @/lib/registry/default/ui/label/Label.vue

Usage

<script setup lang="ts">
import { Label } from '@/components/ui/label'
</script>

<template>
  <Label for="email">Your email address</Label>
</template>