Swallow Delete Button
Bin lid swings open on its hinge, the label’s letters arc inside, the lid snaps shut and a ring traces the receipt.
Try it: Click — letters leap into the bin, ring draws, label returns.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/swallow-delete-button.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/swallow-delete-button. You can also copy the source into components/ui/swallow-delete-button.tsx (view on GitHub).
Usage
import { SwallowDeleteButton } from '@/components/ui/swallow-delete-button'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
variant | 'violet' | 'neutral' | 'danger' | 'violet' | Color treatment. |
label | string | 'Delete' | Letters that get swallowed. |
confirm | boolean | false | Require a second press (Esc or blur cancels). |
onDelete | () => void | Promise<unknown> | — | Rejecting spits the letters back with a shake. |
Dependencies
motion
Related Buttons components
- Face Scan Pay Button
Navy pay pill folds into a lit square, a biometric reticle sweeps a face glyph while a comet laps the rim, then it unfolds with a check.
- Fill Progress Download Button
Arrow sinks away, a deeper blue floods the pill with a live percentage, then it condenses into a calm done chip.
- Orbit Dot Export Button
Pill tucks down to its ring, a shaped comet orbits with a trailing progress arc, the ring floods solid, the arrow bends into a check and the pill reopens as the next action.
- Drop-In Cart Button
Pill tucks into a cart, a box springs into the basket, the cart rolls away and back while the badge and counter pop.
- Shredder Delete Button
Pill holds still while its icon works: the lid flips, a sheet feeds in, paper ribbons tumble out below and a tally counts each shred.
- Dispatch Truck Button
Order pill stretches into a road; a parcel thumps onto a courier flatbed that drives off before a green confirmation pops in.