Ding
Toasts with real spring physics that morph instead of stacking.
访问官网概览
Every app you use stacks its notifications into a pile. A save confirmation, an upload progress bar and an error all fight for the same corner, and the one you needed scrolls away first.
Ding keeps a single toast on screen and morphs it in place. A new call takes over the quick toast with a spring animation, while errors and other held toasts keep their place until you dismiss them.
What it does
- Real springs — size, shape and text move on a spring solver, so interrupting an animation keeps its momentum
- Zero dependencies — MIT licensed, no stylesheet to import; styles are injected from JavaScript
- Four frameworks — React, Svelte 5, Vue 3 and plain JavaScript, plus a shadcn/ui registry entry
- Rich content — descriptions, avatars, buttons, progress bars and countdown lines
The fine print
Free and open source under MIT. Six positions, light, dark and system themes, right-to-left support, and colours and corner radius as CSS variables. Accessible by default, with live regions, keyboard dismiss and reduced-motion support.
For: front-end developers who want notifications that behave like part of the interface instead of a pile of popups.