bearnie

Label

Associates text with form controls.

Installation

npx bearnie add label
npx bearnie add label

Usage

import { Label } from "@/components/ui/label"
<Label for="email">Email</Label>

Examples

With input

With checkbox

Required

Anatomy

  • Label - A single label element

Props

Label

PropTypeDefaultDescription
forstring-ID of the associated form element
requiredbooleanfalseShows required indicator (*)
classstring-Additional CSS classes