bearnie

Label

Associates text with form controls.

Installation

npx bearnie add label
npx bearnie add label

Usage

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

Examples

With input

With checkbox

Required

Anatomy

  • Label - A single label element

Props

Label

Prop Type Default Description
for string - ID of the associated form element
required boolean false Shows required indicator (*)
class string - Additional CSS classes