Buttons
Destructive sweep button
Destructive sweep button: A delete action whose rose to crimson shading sweeps end to end on hover, tipping the bin lid, with an optional hold to confirm line along the bottom edge.
Using Destructive sweep button
Destructive sweep button uses the inline preview frame with a dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
label | text | Delete draft | Up to 24 characters |
accent | color | #E11D48 | No additional limit in the metadata. |
holdToConfirm | boolean | false | No additional limit in the metadata. |
holdMs | number | 900 | From 300 to 2000; step 50 |
Which frameworks are available for Destructive sweep button?
Destructive sweep button is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Destructive sweep button depend on?
The React metadata lists these npm dependencies beyond React: motion.
What accessibility details are visible in Destructive sweep button?
The React source for Destructive sweep button includes: native elements (button); attributes and handlers (aria-hidden, aria-label, onKeyDown, onKeyUp); key comparisons (Enter, Space). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Destructive sweep button handle reduced motion?
Destructive sweep button reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: sweepDuration: reduced ? "1ms" : "300ms". Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.