Component packs › Floors › Door Modal
The dialog arrives as a closed lift, its hall lantern lights, then the brushed-steel doors part on a spring to show the content; closing slides them shut first.
Door Modal is a modal from Floors, a component pack with 6 lift controls: Pagination, dialogs, steppers and menus that work like a lift. Price: $2 for the whole pack.
Built with: door leaves on a spring, hall lantern, focus kept inside.
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 |
|---|---|---|---|
title | string | ||
body | string | ||
confirmLabel | string | ||
cancelLabel | string | ||
triggerLabel | string | Text of the button that opens it. | |
open | boolean | ||
overlay | boolean | true: covers the whole window (position fixed). false: covers this component's own box. | |
onConfirm | () => void | ||
onClose | () => void | ||
autoplay | number | false | Showcase mode: opens and closes itself every N ms while visible. |
readonly open: booleanshow(): voidhide(): voiddestroy(): voidimport DoorModal from './DoorModal';
<DoorModal />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Dialogs and drawers.