Y2K UI

Label

A text label for form controls.

label-demo.app

Installation

terminal.sh
npx y2kui@latest add label

Usage

import { Label } from "@/components/ui/label"

<Label htmlFor="email">Email</Label>

Props

PropTypeDefaultDescription
htmlForstringID of the associated form control.
classNamestringAdditional Tailwind classes.
childrenReactNodeLabel content.

On this page