Morphing Modal

Family-app-style modal. A body-portalled panel that morphs its height between inner views with a blur cross-fade and scroll locking through the closing animation. Exit fades stay at their final values until removal.

Preview

Click a row. The modal morphs height to match new content.

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn@latest add @beui/morphing-modal

API Reference

viewId
string | null

Which view is currently shown. `null` closes the modal.

—
onClose
() => void
—
placement?
"bottom" | "center"

"bottom" anchors to the viewport bottom (mobile-like). "center" centers vertically.

bottom
className?
string
—

Updated