Sheet

A modal panel that opens from any edge of the window.

Side

No Close Button

Installation

Install the shared package once in your Exact app. This version is a beta.
bun add --exact @rightui/ui@0.4.0-beta.4
The Exact compiler requires Bun 1.4.2, regardless of which package manager installs the package.
Complete the font, app metadata and root provider setup (required for both installation methods).
Import
use SheetContent, SheetBody, SheetFooter from "@rightui/ui/sheet"

Usage

Import SheetContent, SheetBody and SheetFooter from @rightui/ui/sheet. Control open with local state, pass the ordered focusIds and restore focus in dismiss. For web, load assets/sheet.css from the package and declare rightui-sheet in app.json data. Keep form values in the parent state.

Keyboard

Tab and Shift+Tab stay inside the modal. Escape, the close button and the backdrop dismiss it. Focus returns to the opening control.

API Reference

Properties from the component source. State lives in your component; actions receive the updated value.
SheetContent.id
string
SheetContent.open
bool
SheetContent.focusIds
string[]
SheetContent.dismiss
action
SheetContent.title
string
SheetContent.description
string
SheetContent.side
string
SheetContent.reduced
bool
SheetContent.showCloseButton
bool