Search the docs

Search Keyframery's docs

Keyframery

Alert animation

An alert that appears after the page has loaded eases in instead of popping.

with <Cuts />

What moves

WhenWhat you seeTimingHow
An alert is shown ({show && <Alert />})Rises 6 px and fades in220 msAutomatic

Only an alert inserted on its own eases in; alerts that arrive as part of a whole new page don't. To fold one away when it's dismissed, wrap the area in StateCut.

Install

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

npx shadcn add alert

Turn it off

Put data-cut="none" on a alert (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