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.
function Sheet({ open, onClose, xstyle, animate, ...props }: SheetProps)API reference
| Prop | Type | Default | Description |
|---|---|---|---|
open | boolean | - | |
onClose | () => void | - |
Also accepts Omit<PrimitiveProps<'dialog'>, 'as' | 'open' | 'onClose'>. Raw style and className are refused.
Related components
TextInline text or a formatted animated number.TextFieldNative text input over `fill`, the field in a form or a sheet. Any `type` works, including `date`, `time` and `datetime-local`; `multiline` swaps in a textarea. Supply a visible label or aria-label.TitleFixed app header, or its compact trailing accessories. Use as="h1" for a semantic heading.