Component packs › Floors › Door Modal

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.

Door Modal props

PropTypeDefaultDescription
titlestring
bodystring
confirmLabelstring
cancelLabelstring
triggerLabelstringText of the button that opens it.
openboolean
overlaybooleantrue: covers the whole window (position fixed). false: covers this component's own box.
onConfirm() => void
onClose() => void
autoplaynumber | falseShowcase mode: opens and closes itself every N ms while visible.

Methods on the ref

Use it in React

import DoorModal from './DoorModal';

<DoorModal />

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

More in Floors

Good for: Dialogs and drawers.