0.04K

Renders an accessible label associated with controls.

import { Checkbox } from '@/components/ui/checkbox';
import { Label } from '@/components/ui/label';

<template>
  <div class="flex items-center gap-3">
    <Checkbox id="terms" />
    <Label @for="terms">Accept terms and conditions</Label>
  </div>
</template>

Installation

pnpm dlx shadcn-ember@latest add label

Usage

import { Label } from '@/components/ui/label';
<Label @for="email">Your email address</Label>