Search the docs

Search Keyframery's docs

Keyframery

Sonner animation

A toast flies from the button that made it, and its status icon plays as it lands.

with <Cuts />

What moves

WhenWhat you seeTimingHow
A toast arrivesCut on action: from the button you pressed380 msAutomatic
Its status iconA tick or cross draws itself, a warning rocks320 msAutomatic

Install

Sonner is shadcn's own component. With <Cuts /> in your root layout (Quick start), there's nothing else to add:

npx shadcn add sonner

Turn it off

Put data-cut="none" on a sonner (or anything around it) to keep shadcn's own motion there. <Cuts responses="none" /> turns off every response across the app and keeps the cuts. With reduced motion, movement becomes a short fade or nothing.

On this page