Skip to content
caliper ui pro docs

Dust remove

Removes an item by turning it to dust: the row breaks into small grains that drift up and away from one side to the other, then the space it held closes. The grains are copies of the row, so it needs no canvas or screenshot.

Pro
  • Priya Raman commented on Q3 forecast2m ago
  • Deploy bot production is live (v4.12.0)14m ago
  • Jonas Weber assigned you CAL-2121h ago
  • Billing October invoice is ready3h ago

When to use

  • Deleting a message, notification or card where the removal should feel final.
  • Clearing a single item in a list people watch.

When not to use

  • Bulk deletes; dozens of rows breaking at once is noise.
  • Removals people may want back without an undo nearby.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/dust-remove

Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

DustRemove

4 props

Also accepts the native props of its root element and a ref.

PropTypeDefaultDescription
removedbooleanfalseSet true to break the content into dust; `onRemoved` fires once it has gone and the space has closed.
onRemoved(() => void)—
announcestring—Said politely to assistive technology as the removal starts, e.g. "Message deleted".
grainnumber9Size of a grain in px. Smaller is finer and costs more.

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It is built on native elements, so roles and focus come from the browser. Changes that matter are announced through a live region.

Motion

  • State changes animate with the library's shared durations and curves, so its timing matches every other part.
  • Under reduced motion each change lands on its end state without movement; nothing is hidden or skipped.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/dust-remove.md

The index of every part is at /llms.txt.

More in Changing values