ui

Sheet

A flyout that opens from the side of the screen, based on the dialog component. Built with Base UI and Tailwind CSS. Copy-paste ready.

API Reference

Installation

Usage

SheetPanel Scrolling

The SheetPanel component automatically wraps its content in a ScrollArea component. This means that if the content exceeds the sheet's maximum height, it will become scrollable automatically. The scrollbar will appear when needed, providing a smooth scrolling experience.

SheetPopup Props

The SheetPopup component supports the following props:

  • side: Controls which side of the screen the sheet opens from. Options: "top", "bottom", "left", "right" (default: "right")
  • inset: When true, adds spacing around the sheet on desktop screens (default: false)

Examples

Sheet with Inset

Side Sheets

Scrollable Content

A sheet with a sticky header and footer while the body scrolls independently. Useful for long forms or content lists that should never obscure the primary actions.

Shopping Cart

A right-side sheet that acts as a persistent cart drawer. Inline quantity controls let users adjust or remove items, and the subtotal updates live before checkout.

Notification Center

Surface recent activity in a slide-over panel without leaving the current page. Each notification can be individually acknowledged, with a bulk "mark all read" action in the header.

Team Invite

A sheet-based invite flow with an email input, role picker, and a live pending list. New invites appear instantly and can be revoked before the user closes the sheet.

Activity Log

A chronological audit trail displayed as a vertical timeline inside a sheet. Colored event badges distinguish deploys, merges, comments, and other action types at a glance.

A left-side sheet used as a mobile navigation drawer. Grouped nav links with a badge counter, a branded header, and a sticky user profile row at the bottom.

Issue Detail

A wide sheet that surfaces the full context of a task — status, priority, due date, description, and threaded comments — without navigating away from the current view.

Export Data Panel

Choose between CSV, JSON, and TXT formats, set a filename, and review what the export includes — all before hitting Download.

User Profile Viewer

A slide-over profile card showing an avatar, bio, repository stats, and social links — with a Follow action in the footer.

Support Contact Form

Category chip selector, subject input, and a message textarea. On submit the panel switches to a confirmation state without closing.

Keyboard Shortcuts Reference

A read-only cheat sheet grouping shortcuts by General, Editor, and View — each key rendered as a Badge in monospace style.

API Key Manager

Lists active API keys with their prefix, creation date, and last-used time. Each key has a rotate (with spinner) and revoke action.