Component packs › Setpoint › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
workspace | string | ||
items | string[] | Things that will be lost, shown in the preview. | |
hold | number | Hold time in ms. | |
onDelete | () => void | ||
onUndo | () => void | ||
autoplay | number | false | Showcase mode: holds (and sometimes lets go) every N ms while visible. |
readonly deleted: booleanundo(): voiddestroy(): voidimport DangerZone from './DangerZone';
<DangerZone />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Settings pages.