Component librarySheet / drawer
Components/Feedback

Sheet / drawer

Pro

A controlled modal sheet with side or edge placement, narrow-screen top or bottom reflow, focus trapping and native dismissal contracts.

npx shadcn@latest add @tidal-pro/sheet-drawer
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/sheet-drawer

Import components/ui/tidal.css, components/ui/sheet-drawer.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

open, onOpenChange, title, description and children are required. Radix Dialog provides modal focus trapping, initial focus, Escape and backdrop dismissal, outside-interaction prevention and focus return. Optional placement left/right/top/bottom and mobilePlacement top/bottom/same control edge geometry; the default right sheet becomes bottom below 650px. Optional single native focusable trigger or native default trigger props/ref, semantic heading level, footer, native close props/ref and label, overlay props/ref, portal container, theme, direction and native Dialog.Content attributes/ref remain consumer-owned. Default trigger and close native disabled or aria-disabled true resolve disabled behavior; explicit false is preserved. Content event callbacks may prevent Escape, pointer-outside, interaction-outside, open autofocus or close autofocus behavior. The body is the only scroll region. The component performs no navigation, form submission, save, request, account, storage or application-state effect.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.