Skip to content
caliper ui pro docs

Morphing modal

A modal whose surface morphs between views, like a menu becoming a confirmation.

Pro
+1
Platform

Active · 12 open tasks

When to use

  • Multi-step choices in one place, such as actions then confirm.
  • You want the transition to explain the connection.

When not to use

  • A single static dialog is enough.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/morphing-modal

Adds its 4 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

MorphingModal

6 props
PropTypeDefault
open *boolean—
onOpenChange *(open: boolean) => void—
label *string—
view *string—
children *ReactNode—
classNamestring—

Keyboard

Escape
Closes or cancels, then returns focus to where it came from.

Accessibility

It exposes dialog semantics, with aria-label, aria-modal, aria-labelledby and aria-hidden kept in step with state.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/morphing-modal.md

The index of every part is at /llms.txt.

More in Modal