Lumeo

Sheet

A panel that slides in from the edge of the screen, typically used for navigation or forms.

Installation

dotnet add package Lumeo

One-time app setup (AddLumeo(), CSS & JS) is covered in the installation guide.

Usage

@using Lumeo

<Sheet />

When to Use

  • Display side panels for editing profiles, settings, or detail views
  • Build slide-out navigation menus for mobile or compact layouts
  • Show supplementary forms or configuration options without leaving the current page
  • Present multi-step content in a panel that slides in from any edge
  • Create responsive overlays that adapt between Sheet (desktop) and Drawer (mobile)

Pick a value to see it applied live.

Open any side and try the swipe gesture (works on touch devices and mouse-drag).

Intercepting close

OnBeforeClose lets you guard any close attempt — Escape, backdrop click, or the close button. The handler receives a DismissEventArgs with a Reason string ("escape", "outside", "close", "action", or "cancel"). Set e.Cancel = true to keep the sheet open.

Nested stacking. A Sheet opened on top of a Dialog (or another Sheet / Drawer / AlertDialog) now stacks correctly — each overlay picks the next z-index slot, and Escape only closes the top-most one. No configuration required.

Keyboard Interactions

Key Action
EscapeClose the sheet (unless PreventClose is enabled)
TabCycle focus through interactive elements within the sheet (focus trap)
Shift + TabMove focus to the previous interactive element within the sheet

API Reference

Sheet

SheetContent

Side accepts Top, Right, Bottom, Left. Size accepts Sm, Default, Lg, Xl, FullFull on Top/Bottom takes the entire viewport, the mobile-fullscreen bottom-sheet pattern.

SheetTrigger

Mirrors the Dialog API — opens the sheet on click.

SheetClose

Mirrors the Dialog API — closes the sheet on click.

SheetHeader / SheetFooter

Flex containers for the panel's header and footer regions.

SheetTitle / SheetDescription

Style the title and description text and wire them to the panel's accessible name/description.

  • Drawer — Use for mobile-first bottom sheet overlays with swipe-to-dismiss
  • Dialog — Use for centered modals that demand user attention and a decision
  • Sidebar — Use for persistent navigation panels that remain visible alongside content