Label

Text in the ShellUI type scale, with sizes, weights and colour variants.

The class is ShellLabel, since both MAUI and Avalonia already have a Label.

Installation

bash
shellui-native add label

Platforms: MAUI · Avalonia.

Usage

Sizes, weights and variants

Rendered with ShellUI for Blazor

Shewart Shepherd

Builds ShellUI.

Joined December 2024

Couldn't load the profile.

<ui:ShellLabel Text="Shewart Shepherd" Size="Lg" Weight="Semibold" />
<ui:ShellLabel Text="Builds ShellUI." Size="Sm" />
<ui:ShellLabel Text="Joined December 2024" Size="Sm" Variant="Muted" />
<ui:ShellLabel Text="Couldn't load the profile." Size="Sm" Variant="Destructive" />
Avalonia, running in your browser

MAUI and Avalonia

Both wrap long text. Avalonia's ShellLabel is a TextBlock, so it also takes the TextBlock properties (TextWrapping="NoWrap" for one line, TextAlignment, …).

API

Property Type Default Description
Text string — Text shown by the component.
Size LabelSize Default Size preset. One of Xs, Sm, Default, Lg, Xl, Xxl, Xxxl.
Weight LabelWeight Normal One of Light, Normal, Medium, Semibold, Bold.
Variant LabelVariant Default Visual style. One of Default, Muted, Destructive, Success, Warning.
HorizontalTextAlignment TextAlignment Start Passed to the inner Label: Start, Center or End. MAUI only.
LineBreakMode LineBreakMode WordWrap Passed to the inner Label: how long text wraps or is cut off. MAUI only.

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.