Component packs › Threshold › Morph Dialog

Morph Dialog

The New project button stretches into the dialog in its own colour, the form fades in once there is room, and closing folds it back into the button.

Morph Dialog is a dialog from Threshold, a component pack with 6 overlays: Dialogs, drawers and sheets that come out of where you tapped and go back into it. Price: $2 for the whole pack.

Built with: grows from its trigger, colour carries over, focus trap and return.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Morph Dialog props

PropTypeDefaultDescription
itemsstring[]Projects listed behind the dialog.
onCreate(name: string, template: string) => voidCalled with the new project's name and template.
fixedbooleanPut the overlay on the viewport instead of inside the frame.
theme"light" | "dark"
autoplaynumber | falseShowcase mode: opens, fills in and creates every N ms while visible.

Methods on the ref

Use it in React

import MorphDialog from './MorphDialog';

<MorphDialog />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Threshold

Good for: Dialogs and drawers.