Y2K UI

Label

A text label for form controls.

label-demo.app

Installation

terminal.sh
npx y2kui add label

Usage

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

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

Props

PropTypeDefaultDescription
htmlForstring—ID of the associated form control.
classNamestring—Additional Tailwind classes.
childrenReactNode—Label content.

On this page