Skip to content

Label

A caption for a control that has no label of its own, with an optional required mark.

Group: Text · Kind: macro · in the lite catalog

example
Visibility

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-label on Web
exponential-ui-label on iOS
exponential-ui-label on Android
exponential-ui-label on Desktop
required
Visibility*
Prop Type Required Bindable Description
text string yes yes The caption.
for string – – The id of the control it labels.
required boolean – – Adds the required mark. Default false.

None.

None.

none

No basic catalog component maps here.

Box · Text

Role: text

label of the control named by for

Keys Action
– Pressing it focuses that control

Recipe parts: Label/root Label/text Label/mark

Keyed by: required :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

Text · Heading · Markdown · CodeBlock · Kbd