Component packs › Setpoint › Danger Zone

Danger Zone

Hold to delete: as the fill grows the preview crosses off what you are about to lose, one line at a time; let go and it all comes back.

Danger Zone is a settings from Setpoint, a component pack with 6 settings panels: Settings panels that show the effect of every change as you make it. Price: $2 for the whole pack.

Built with: hold to confirm, loss preview, ten second undo.

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.

Danger Zone props

PropTypeDefaultDescription
workspacestring
itemsstring[]Things that will be lost, shown in the preview.
holdnumberHold time in ms.
onDelete() => void
onUndo() => void
autoplaynumber | falseShowcase mode: holds (and sometimes lets go) every N ms while visible.

Methods on the ref

Use it in React

import DangerZone from './DangerZone';

<DangerZone />

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

More in Setpoint

Good for: Settings pages.