Skip to content
GitHub11 stars

Extends the Dialog component to display content that complements the main content of the screen.

<Sheet>
    <SheetTrigger>
        <Render>

Installation

dnx Blazix.Cli add sheet

Usage

<Sheet>
    <SheetTrigger>Open</SheetTrigger>
    <SheetContent>
        <SheetHeader>
            <SheetTitle>Are you absolutely sure?</SheetTitle>
            <SheetDescription>This action cannot be undone.</SheetDescription>
        </SheetHeader>
    </SheetContent>
</Sheet>

Composition

Use the following composition to build a Sheet:

Sheet
├── SheetTrigger
└── SheetContent
    ├── SheetHeader
    │   ├── SheetTitle
    │   └── SheetDescription
    └── SheetFooter

Side

Use the Side parameter on SheetContent to set the edge of the screen where the sheet appears. Values are top, right, bottom, or left.

<div class="flex flex-wrap gap-2">
    @foreach (var side in SheetSides)
    {

No Close Button

Use ShowCloseButton="false" on SheetContent to hide the close button.

<Sheet>
    <SheetTrigger>
        <Render>

RTL

To enable RTL support in Blazix, see the RTL configuration guide.

Translated with AI for the demo, so it may have mistakes.

<Sheet>
    <SheetTrigger>
        <Render>

API Reference

Sheet

ParameterTypeDefault
Open bool false
OpenChanged EventCallback<bool> -
OnOpenChange EventCallback<OpenChangeEventArgs> -
OnOpenChangeComplete EventCallback<bool> -
Modal PopupModal PopupModal.True
DisablePointerDismissal bool false
ChildContent RenderFragment? -

SheetClose

ParameterTypeDefault
Render RenderFragment<PopupTriggerRenderProps>? -
NativeButton bool? -
Class string? -
ChildContent RenderFragment? -

Other attributes are passed to the element it renders.

SheetContent

ParameterTypeDefault
Render RenderFragment<DialogPopupRenderProps>? -
Side SheetSide SheetSide.Right
ShowCloseButton bool true
InitialFocus string? -
FinalFocus string? -
Class string? -
ChildContent RenderFragment? -

Other attributes are passed to the element it renders.

SheetDescription

ParameterTypeDefault
Render RenderFragment<PopupRenderProps>? -
Class string? -
ChildContent RenderFragment? -

Other attributes are passed to the element it renders.

SheetFooter

ParameterTypeDefault
Class string? -
ChildContent RenderFragment? -

Other attributes are passed to the element it renders.

SheetHeader

ParameterTypeDefault
Class string? -
ChildContent RenderFragment? -

Other attributes are passed to the element it renders.

SheetOverlay

ParameterTypeDefault
Class string? -

Other attributes are passed to the element it renders.

SheetPortal

ParameterTypeDefault
KeepMounted bool false
ChildContent RenderFragment? -

SheetTitle

ParameterTypeDefault
Render RenderFragment<PopupRenderProps>? -
Class string? -
ChildContent RenderFragment? -

Other attributes are passed to the element it renders.

SheetTrigger

ParameterTypeDefault
Render RenderFragment<PopupTriggerRenderProps>? -
NativeButton bool? -
Class string? -
ChildContent RenderFragment? -

Other attributes are passed to the element it renders.