Skip to content

Label

Renders an accessible label associated with controls.

Installation

pnpm dlx shadcn@latest add @frontal-labs/label

Usage

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

API Reference

This is a custom component using Base UI's useRender hook, not a direct Base UI wrapper.

Label

A label component that can be rendered as different elements.

Examples

For accessible labelling and validation, prefer using the FieldLabel component. See some related examples.

With Checkbox