Label macrolite
A caption for a control that has no label of its own, with an optional required mark.
Preview
Loading the renderer…
createSurface + updateComponents, A2UI v0.9.
json
[
{
"version": "v0.9",
"createSurface": {
"surfaceId": "preview",
"catalogId": "https://ui.exponential.at/catalogs/core/v1"
}
},
{
"version": "v0.9",
"updateComponents": {
"surfaceId": "preview",
"components": [
{
"id": "root",
"component": "Stack",
"direction": "vertical",
"align": "stretch",
"children": [
"example"
]
},
{
"id": "example",
"component": "Label",
"text": "Visibility",
"for": "visibility"
}
]
}
}
]This surface through a MemoryTransport. Install and transports: React guide.
This surface through a MemoryTransport. Install and transports: SwiftUI guide.
This surface through a MemoryTransport. Install and transports: Compose guide.
This surface through a MemoryTransport. Install and transports: gpui guide.
Platforms




View exponential-ui-label, painted by each native renderer.
Variants
requiredProps
| Prop | Type | Default | Description |
|---|---|---|---|
textrequiredbind | string | – | The caption. |
for | string | – | The id of the control it labels. |
required | boolean | false | Adds the required mark. |
Events and slots
No events, no slots. Children: none.
Accessibility
- Role
text- Semantics
- label of the control named by
for
| Keys | Action |
|---|---|
| – | Pressing it focuses that control |
Theming
- Recipe parts
Label/rootLabel/textLabel/mark- Keyed by
required:hover:pressed:focus:disabled:checked:open:selected:invalid:dragover