Skip to content
Menu

Overlays

Perspective reveal dialog

Perspective reveal dialog: A general purpose dialog whose panel tilts in from a chosen edge in 3D, then flattens into place, for showing arbitrary content over a dimmed page.

Using Perspective reveal dialog

Perspective reveal dialog uses the card preview frame with a light/dark theme setting.

Customize the preview

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

ControlTypeDefaultPreview limits
fromselecttopOptions: top, bottom, left, right
accentcolor#38BDF8No additional limit in the metadata.
titletextTerms of ServiceUp to 50 characters
showFooterButtonbooleantrueNo additional limit in the metadata.
Which frameworks are available for Perspective reveal dialog?

Perspective reveal dialog is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

What does Perspective reveal dialog depend on?

The React metadata lists these npm dependencies beyond React: motion, radix-ui, clsx, tailwind-merge.

What accessibility details are visible in Perspective reveal dialog?

The React source for Perspective reveal dialog includes: native elements (button); attributes and handlers (aria-hidden, aria-label). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Perspective reveal dialog handle reduced motion?

Perspective reveal dialog reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: delay: reduced ? 0 : 0.05; duration: reduced ? 0 : 0.2; enterTransition: reduced ? { duration: 0 } : { type: "spring", stiffness: 210, damping: 24, mass: 0.9 }. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

Connect your agent

Related open components