Sheet

A modal card over the app. It is a non-modal <dialog> on purpose: showModal would lift the card into the top layer, and Chromium hit-tests top-layer content at its untransformed position - inside the scene's preserve-3d transform every point lands behind the card, dead to the finger. The open attribute keeps it in the transformed tree where hit-testing is honest, and the scrim, Escape and closing are drawn by hand. Closing is held back until the card has shrunk away, so it leaves the way it came.

Source
function Sheet({ open, onClose, xstyle, animate, ...props }: SheetProps)

API reference

PropTypeDefaultDescription
openboolean-
onClose() => void-

Also accepts Omit<PrimitiveProps<'dialog'>, 'as' | 'open' | 'onClose'>. Raw style and className are refused.

Related components