Measured entry

tripled-bottom-modal

dialogglassmorphismmotion on file

A client-side React bottom modal that slides over a blurred backdrop and includes focus trapping, Escape dismissal, scroll locking, focus restoration, and reduced-motion handling. It ships as registry source and relies on Framer Motion, Lucide icons, Tailwind theme classes, and a shadcn Button import.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of tripled-bottom-modal at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-bottom-modal at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-bottom-modal at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

Measured

Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.

Harness measurements recorded for tripled-bottom-modal
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal72.5 KB (137.9 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 1m 21s
error during build:
[vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/components/ui/button.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'

Verdict

A sound, accessible starting point for a focused bottom confirmation modal, with clean responsive behavior in the harness. It is demo-shaped rather than reusable as shipped, and it needs a shadcn-style setup before it can build or mount in a bare React project.

Use it if

  • You want a compact confirmation or welcome dialog anchored to the bottom edge.
  • Your app already uses shadcn conventions, Tailwind theme tokens, and Framer Motion.
  • You prefer an inspectable modal implementation with keyboard and focus behavior in the component itself.

Skip it if

  • You need a general-purpose dialog primitive with nested dialogs, portals, or extensive composition APIs.
  • You want to avoid the runtime and bundle cost of Framer Motion for a single transition.
  • Your design system does not provide shadcn-style aliases, Button plumbing, or matching Tailwind tokens.
  • You need the content and actions exposed as props without first refactoring the fixed demo copy.

Install

Installation record for tripled-bottom-modal
Declared dependenciesframer-motion, react, radix-ui
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

In a non-shadcn project, add React, Framer Motion, Lucide React, a compatible Button component, the project alias used by the import, and any class-merging utility that Button expects. Also provide Tailwind with the semantic color, border, shadow, backdrop, and focus-ring classes used by the source, or translate those styles to your own system.

Source and credit

This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.

Alternatives

Other published entries for the dialog pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.