Switch

An on / off toggle with an optional label.

Installation

bash
shellui-native add switch

Platforms: MAUI · Avalonia.

Usage

Basic

Rendered with ShellUI for Blazor
<ui:Switch Label="Release emails" IsToggled="True" />
<ui:Switch Label="Airplane mode" />
Avalonia, running in your browser

API

Property Type Default Description
IsToggled bool false Whether it's on. Two-way bindable.
Label string — Text next to the control; clicking it toggles the control.
Event Arguments Description
Toggled bool User input only: setting IsToggled from code or a binding doesn't raise it.

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.