Skip to content

    Browse components

    Crumple Delete

    Deleting a note scrunches it into a paper ball that arcs into a bin, whose lid flips open and wobbles shut. Undo tosses it back out and smooths it flat.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/crumple-delete

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/crumple-delete.json

    Usage

    import { CrumpleDelete } from "@/components/ui/crumple-delete";
    
    <CrumpleDelete
      title="Grocery list"
      body="Oat milk, lemons, basil…"
      onDelete={() => removeNote(id)}
    />

    Props

    PropTypeDefaultDescription
    titlestring"Grocery list"Note title.
    bodystring"Oat milk, lemons, basil, the good sourdough, something for Sunday."Note text.
    undoDurationnumber5000Ms the Undo button stays available.
    colorstring"#f87171"Undo accent color.
    onDeleteReactNode—Called when the undo window closes and the delete is final.
    onUndoReactNode—Called when the note is restored.
    classNamestring—Extra classes for the root element.