Component packs › Threshold › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
items | string[] | Projects listed behind the dialog. | |
onCreate | (name: string, template: string) => void | Called with the new project's name and template. | |
fixed | boolean | Put the overlay on the viewport instead of inside the frame. | |
theme | "light" | "dark" | ||
autoplay | number | false | Showcase mode: opens, fills in and creates every N ms while visible. |
readonly open: booleanshow(): voidclose(): voiddestroy(): voidimport MorphDialog from './MorphDialog';
<MorphDialog />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Dialogs and drawers.