shadcn-vue/apps/www/src/content/docs/components/label.md
Sadegh Barati d34c620055
chore: lint and enable Volar hybrid mode (#419)
* chore: update deps

* feat: enable Volar hybrid mode

* chore: lint

* chore: build registry
2024-03-20 22:29:42 +03:30

772 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>