Measured entry

tripled-drag-to-confirm-slider-shadcnui

buttonminimal-flatmotion on file

A client-side React drag-to-confirm control distributed as a shadcn registry component. It uses Framer Motion for drag state and animation, a Lucide check icon, Tailwind utility classes, and shadcn color tokens. It exposes confirmation copy and a callback, then replaces the slider with a confirmed state.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of tripled-drag-to-confirm-slider-shadcnui at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-drag-to-confirm-slider-shadcnui at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-drag-to-confirm-slider-shadcnui 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-drag-to-confirm-slider-shadcnui
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious1
Axe moderate0
Axe minor0
Gzip marginal62.2 KB (127.6 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 993ms
error during build:
[vite]: Rollup failed to resolve import "lucide-react" from "<sandbox>re-787f0760787b/src/cut/components/uitripled/drag-to-confirm-slider-shadcnui.tsx".

Verdict

It builds, mounts, and fits the tested layouts, but it is a starting point rather than a production-ready confirmation control. The verified label contrast failure and missing keyboard semantics need correction. Best for teams already comfortable with Framer Motion and shadcn styling.

Use it if

  • You need deliberate pointer confirmation for a consequential action where an ordinary click is too easy to trigger.
  • Your interface already uses Tailwind and shadcn theme tokens, and Framer Motion is an acceptable dependency.
  • You can add keyboard semantics, focus behavior, and accessible instructions before shipping.

Skip it if

  • The action must work accessibly out of the box for keyboard and assistive technology users; the draggable div is not a semantic button or slider.
  • You need a lightweight confirmation control without an animation library.
  • Your design system cannot absorb a contrast correction for the default label styling.
  • You need a resettable or controlled confirmation state, since the confirmed state is internal and permanent for the mounted instance.

Install

Installation record for tripled-drag-to-confirm-slider-shadcnui
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, and lucide-react, configure Tailwind, and define equivalents for the shadcn primary, muted, border, and foreground color tokens. Preserve the client-component boundary where the framework requires it. No context provider is needed.

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 button pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.