TidalUI

Sheet / drawer preview

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

pro · Feedback · primitive

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

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

Import components/ui/tidal.css, components/ui/sheet-drawer.css. Wrap installed components in tidal-scope.

Preview

Sheet / drawer component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/sheet-drawer.css";
import{TidalSheet}from"./components/ui/sheet-drawer";
export default()=><div className="tidal-scope"><TidalSheet children={"value"} description={"Demo"} onOpenChange={() => {}} open={false} title={"Demo"}/></div>;

API and props

TidalSheet.children (required)
ReactNode

Required children value accepted by this exported component.

TidalSheet.description (required)
ReactNode

Required description value accepted by this exported component.

TidalSheet.onOpenChange (required)
(open: boolean) => void

Callback invoked when the open change interaction is proposed.

TidalSheet.open (required)
boolean

Required open value accepted by this exported component.

TidalSheet.title (required)
ReactNode

Required title value accepted by this exported component.

TidalSheet.closeButtonProps
Omit<ButtonHTMLAttributes<HTMLButtonElement>, "type" | "aria-label" | "children"> | undefined

Optional close button props value accepted by this exported component.

TidalSheet.closeButtonRef
Ref<HTMLButtonElement> | undefined

Optional close button ref value accepted by this exported component.

TidalSheet.closeLabel
string | undefined

Optional close label value accepted by this exported component.

TidalSheet.defaultTriggerLabel
ReactNode

Optional default trigger label value accepted by this exported component.

TidalSheet.defaultTriggerProps
Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> | undefined

Optional default trigger props value accepted by this exported component.

TidalSheet.defaultTriggerRef
Ref<HTMLButtonElement> | undefined

Optional default trigger ref value accepted by this exported component.

TidalSheet.dir
"ltr" | "rtl" | undefined

Optional dir value accepted by this exported component.

TidalSheet.footer
ReactNode

Optional footer value accepted by this exported component.

TidalSheet.headingLevel
"h2" | "h3" | "h4" | undefined

Optional heading level value accepted by this exported component.

TidalSheet.mobilePlacement
TidalSheetMobilePlacement | undefined

Optional mobile placement value accepted by this exported component.

TidalSheet.overlayProps
Omit<Omit<Dialog.DialogOverlayProps & RefAttributes<HTMLDivElement>, "ref">, "asChild" | "forceMount"> | undefined

Optional overlay props value accepted by this exported component.

TidalSheet.overlayRef
Ref<HTMLDivElement> | undefined

Optional overlay ref value accepted by this exported component.

TidalSheet.placement
TidalSheetPlacement | undefined

Optional placement value accepted by this exported component.

TidalSheet.portalContainer
HTMLElement | null | undefined

Optional portal container value accepted by this exported component.

TidalSheet.theme
"light" | "dark" | undefined

Optional theme value accepted by this exported component.

TidalSheet.trigger
ReactElement<unknown, string | JSXElementConstructor<any>> | undefined

Optional trigger value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas