Menu

Your toast notifications fade. Mine morph.
📰

Your toast notifications fade. Mine morph.

DEV Community: opensource·Yusuf Cengiz·4 days ago
#3rsIvsjC
#devtoopensource#devto#dev#ding#toast
Reading 0:00
15s threshold

Most toast libraries do the same thing: a card fades in, sits there, fades out. When the next one arrives, it stacks on top or replaces the old one.

I wanted toasts that feel like one object changing state, so I built Ding , an open source toast library with real spring physics.

What is different

Toasts morph in place. A loading toast turns into success or error without a new card appearing.

Zero dependencies. React, Svelte, Vue and plain JavaScript share the same core.

Accessible by default. Screen reader announcements, Escape to dismiss and Alt+T to focus the toast.

Usage

npm i @yusufceng1z/ding-react

Enter fullscreen mode

Exit fullscreen mode

import { Toaster , toast } from '@yusufceng1z/ding-react' ;

< Toaster />

toast . success ( 'Saved' ) ; toast .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.