Threshold

Dialogs, drawers and sheets that come out of where you tapped and go back into it.

Six overlays on one surface engine, built on a single rule: every surface keeps its origin. A dialog grows out of the button that opened it, in that button's own shape and colour, and folds back into it when it closes; everything moves with transform and opacity on springs, focus is trapped while open and returns to the trigger, and Escape always works. Morph Dialog turns a New project button into its form. Hold-to-delete Confirm grows out of the row's bin button and deletes only on a full hold, with Undo after. Push Drawer moves the page aside instead of covering it and follows a drag 1:1 with flick detection. Snap Bottom Sheet rests at peek, half and full, rubber-bands at the ends and projects your flick to pick a height. Lightbox lifts a thumbnail out of the grid into the large view and sends it back to its exact place. Stacked Dialogs step back like cards as each nested one opens. Each item runs inside its own frame on the page, or on the whole viewport with fixed: true. Light and dark pages, keyboard and screen reader ready, reduced motion, zero dependencies.

Type: Component packs. Price: $2. Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). Tags: animated modal React, bottom sheet React, navigation drawer, confirm dialog, lightbox component, nested dialogs, shared element transition, hold to delete.

What is inside (6 overlays)

Good for: Dialogs and drawers.

More like this

More component packs