Sheet

A panel that slides in from an edge of the window.

Installation

bash
shellui-native add sheet

Platforms: MAUI · Avalonia. Also installs sheet-trigger, sheet-content, element-extensions, icon.

Usage

Basic

Rendered with ShellUI for Blazor
<ui:Sheet Side="Right">
    <ui:SheetTrigger><ui:Button Text="Open settings" Variant="Outline" /></ui:SheetTrigger>
    <ui:SheetContent>
        <ui:DialogTitle Text="Settings" />
        <ui:DialogDescription Text="Adjust Shewart's preferences." />
        <ui:Switch Label="Notifications" IsToggled="True" />
        <ui:Switch Label="Airplane mode" />
    </ui:SheetContent>
</ui:Sheet>
Avalonia, running in your browser

Title and description

The title and description reuse DialogTitle and DialogDescription, so add dialog too if you use them.

API

Sheet

XAML children go to Items on Avalonia.

Property Type Default Description
Side SheetSide Right Edge the panel slides in from. One of Left, Right, Top, Bottom.
Open bool false Whether it's open. Two-way bindable.
Event Arguments Description
OpenChanged bool Opened or closed.
Method Description
SetOpen(bool value) Opens or closes it.

SheetTrigger

Method Description
Activate() Does what pressing it does.
ShellTriggerView.ActivateAncestor(Element from) Called by interactive children (Button) after they handle a click.

SheetContent

XAML children go to Items on Avalonia and Children on MAUI.

Property Type Default Description
MaxPanelWidth double 384 Widest a left or right sheet gets (384 is sm:max-w-sm); it never covers more than 75% of the window.

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.