Zephora UI

Form

Label

Form field label with three sizes, a decorative required-field asterisk and a muted disabled style.

Import

import { Label } from "@zephora/react";

Examples

Basic

Point `htmlFor` at the control id, like a native label.

Required and disabled

Sizes

API

Label props

PropTypeDefaultDescription
size"sm" | "md" | "lg""md"Typography scale.
requiredbooleanfalseRenders a required-field asterisk (decorative, aria-hidden).
disabledbooleanfalseApplies muted disabled styling.
unstyledbooleanfalseHeadless mode — drops Zephora classes so your own CSS can style it.
…restLabelHTMLAttributes<HTMLLabelElement>All native label props (htmlFor…) are forwarded.