Sheet

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

Default (Right)

A settings panel sliding in from the right side.

Left Side

A navigation panel sliding in from the left.

Bottom Side

A notification panel sliding up from the bottom.

Usage

julia
using Suite

Sheet(
    SheetTrigger(
        Button(variant="outline", "Open Sheet")
    ),
    SheetContent(side="right",
        SheetHeader(
            SheetTitle("Title"),
            SheetDescription("Description text.")
        ),
        P("Sheet body content goes here."),
        SheetFooter(
            SheetClose(Button(variant="outline", "Cancel")),
            Button("Confirm")
        )
    )
)

Keyboard Interactions

KeyAction
EscapeCloses the sheet

API Reference

Sheet

PropTypeDefaultDescription
children...Any-Sheet trigger and content
classString""Additional CSS classes

SheetTrigger

PropTypeDefaultDescription
children...Any-Element that opens the sheet on click
classString""Additional CSS classes

SheetContent

PropTypeDefaultDescription
sideString"right"Edge to slide from: "top", "right", "bottom", "left"
children...Any-Content rendered inside the sheet panel
classString""Additional CSS classes

SheetHeader

PropTypeDefaultDescription
children...Any-Header content (title and description)
classString""Additional CSS classes

SheetFooter

PropTypeDefaultDescription
children...Any-Footer content (action buttons)
classString""Additional CSS classes

SheetTitle

PropTypeDefaultDescription
children...Any-Title text
classString""Additional CSS classes

SheetDescription

PropTypeDefaultDescription
children...Any-Description text
classString""Additional CSS classes

SheetClose

PropTypeDefaultDescription
children...Any-Element that closes the sheet on click
classString""Additional CSS classes