Drawer

A panel that slides up from the bottom, with a grab handle.

Installation

bash
shellui-native add drawer

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

Usage

Basic

Rendered with ShellUI for Blazor
<ui:Drawer>
    <ui:DrawerTrigger><ui:Button Text="Set goal" Variant="Outline" /></ui:DrawerTrigger>
    <ui:DrawerContent>
        <ui:DialogTitle Text="Move goal" />
        <ui:DialogDescription Text="Set Shewart's daily activity goal." />
        <ui:Progress Value="60" />
        <ui:Button Text="Submit" HorizontalOptions="Fill" />
    </ui:DrawerContent>
</ui:Drawer>
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

Drawer

XAML children go to Items on Avalonia.

Property Type Default Description
Side DrawerSide Bottom 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.

DrawerTrigger

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

DrawerContent

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

No properties of its own.

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.