Skip to content

Label

Renders an accessible label associated with controls.

Install

Bash
npx @madeui/cli add label

Usage

TSX
import { Label } from '@/components/ui/label';

API reference

A plain <label> element with library typography and inline-control spacing. Accepts all native label props (htmlFor, …) plus a style prop (StyleXStyles, merged last). Wrapping a control associates it without htmlFor.

Was this page helpful?