Label

Renders an accessible label associated with controls

SSR mode

Examples

Default

API

The element family below can be composed together. Click an element to jump to its properties.

Element Purpose
Label Accessible <label> with Blok's label typography. Associate with a control via ForId (string id) or For (ElementReference).

Label

Accessible <label> with Blok's label typography. Associate with a control via ForId (string id) or For (ElementReference).

Property Type Required Description
ForId string? Id of the control this label describes. Emitted as the for attribute.
For ElementReference? Blazor element reference whose generated id is used for for. Takes precedence over ForId when both are set.
ClassName string? Extra CSS classes appended to the <label>.
ChildContent RenderFragment? Label text or inline markup.
AdditionalAttributes Dictionary<string, object>? Captured unmatched attributes, forwarded to the <label>.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.