Skip to Content
glob.ui home
Components

Label

A styled `<label>`, with an optional required marker.

Server componentNo state or handlers. Safe to render in a Server Component.
import { Label, labelVariants } from "@glob-ui/label"

Preview

API

Props are generated from the TypeScript types in the package source.

LabelProps

Prop

Type

Accessibility

Key or actionBehaviour
Click on the labelFocuses the control it points to (htmlFor).

ARIA. The label's text is the control's accessible name. Set htmlFor to the control's id. For a Field, use Field instead, which sets this up for you.

On this page