Components / Text

Label macrolite

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

Built from
BoxText
Children
none
Loading the renderer…
Label rendered by the React renderer on Web
Web React
Label rendered by the SwiftUI renderer on iOS
iOS SwiftUI
Label rendered by the Compose renderer on Android
Android Compose
Label rendered by the gpui renderer on Desktop
Desktop gpui

View exponential-ui-label, painted by each native renderer.

required
PropTypeDefaultDescription
textrequiredbindstring–The caption.
forstring–The id of the control it labels.
requiredbooleanfalseAdds the required mark.

No events, no slots. Children: none.

Role
text
Semantics
label of the control named by for
KeysAction
–Pressing it focuses that control
Recipe parts
Label/rootLabel/textLabel/mark
Keyed by
required:hover:pressed:focus:disabled:checked:open:selected:invalid:dragover

Themes · Write a theme