Skip to Content

Label

A form <label>. Prefer FormField, which renders Label for you and wires it to the control — use Label directly for custom form layouts.

import { Label, TextInput } from '@gg-software/ui'; <Label htmlFor="email-input" required> Email </Label> <TextInput id="email-input" type="email" placeholder="you@example.com" />

Props

PropTypeDefaultDescription
children*ReactNodecontent rendered inside the component
htmlForstring
requiredbooleanfalse
disabledbooleanfalse
classNamestring

* required · generated from packages/ui/src/typography/Label/Label.tsx