UILab

Label

Renders an accessible label associated with controls.

"use client"

import { Checkbox, Label } from "uilab-core"

export function LabelPreview() {

Usage

import { Label } from "uilab-core"
<Label htmlFor="email">Your email address</Label>

Label in Field

For form fields, use the Field component which includes built-in FieldLabel, FieldDescription, and FieldError components.

<Field>
  <FieldLabel htmlFor="email">Your email address</FieldLabel>
  <Input id="email" />
</Field>

On this page