Skip to content
Playground

Sheet

A modal panel attached to a viewport edge.

A modal panel attached to a viewport edge.

Backed by Base UI Dialog for upstream behavior and configuration. Zenos owns the public API, styling, and composition shown on this page.

TSX
import { Sheet } from "@zentara-co/zenos-ui";

Sheets attach to any viewport edge. Prefer inline-start or inline-end for detailed tasks and navigation so the attachment follows the reading direction; inline-end is the default. Use left or right only when the edge is intentionally physical. Use top or bottom for shorter, horizontally oriented workflows.

Use open with onOpenChange when application state must respond to every opening and closing path, including the trigger, Close controls, Escape, and allowed outside interaction.

Sheet is closed.

Enable scrollable when content may exceed the viewport. Sheet constrains the attached panel and creates an internal scrolling region while keeping the modal focus behavior intact.

Sheet.Content supplies the portal, backdrop, viewport, popup, edge border, shadow, and close icon. Use showCloseButton={false} only when another clearly labeled close action remains available. showBorder and showShadow can remove elevation treatment for embedded shell compositions.

Sheet.Overlay defaults to forceRender={true} so its backdrop can render when nested inside another dialog, including a closed sheet. This does not keep a closed sheet mounted. Set forceRender={false} on an explicitly composed overlay to use Base UI’s default nested-backdrop behavior.

Variants

side: topside: inline-endside: bottomside: inline-startside: rightside: left
Sheet.Root
Sheet.Trigger
Sheet.Content
Sheet.Header
Sheet.Title
Sheet.Description
Sheet.Footer
Sheet.Close

API

PropTypeDefaultDescription
open boolean — Controlled open state.
defaultOpen boolean false Initial uncontrolled state.
onOpenChange (open: boolean) => void — Runs when visibility changes.
side top | inline-end | bottom | inline-start | right | left inline-end Logical or intentionally physical attached viewport edge.
showCloseButton / showBorder / showShadow boolean true Built-in content chrome.
scrollable boolean false Constrains the panel and enables internal overflow scrolling.
forceRender (Overlay) boolean true Allows the backdrop to render inside another dialog, including a closed sheet.
closeLabel string "Close" Accessible label for the built-in close icon.
Trigger.variant / size ButtonVariant / sm | md | lg primary / md Visual treatment for the built-in trigger button.
Close.variant / size ButtonVariant / sm | md | lg outline / md Visual treatment for an explicit close action.
native props React.Base UI Dialog props — Forwards native attributes, events, aria-*, data-*, className, style, and ref.

Unless narrowed above, each DOM-rendering part also accepts its underlying native or Base UI props, including className, style, aria-*, and data-*.

Sheet uses Base UI Dialog behavior: focus moves into the panel, remains trapped while modal, and returns to the trigger after closing. Escape closes the sheet unless the interaction is deliberately prevented. Every sheet needs a meaningful Sheet.Title; add Sheet.Description when the scope or consequence needs explanation. Customize closeLabel when “Close” is not specific enough.