Repository navigation
v0.0.2
First public release of Ding, a toast library with spring physics and no dependencies.
Only one toast is on screen at a time. A new call morphs it in place instead of stacking a second one.
Packages
@yusufceng1z/ding-reactfor React 18+@yusufceng1z/ding-sveltefor Svelte 5@yusufceng1z/dingfor plain JavaScript
Highlights
- Spring-based size, shape and text transitions that keep momentum when interrupted
- Styles injected from JavaScript, no stylesheet to import
- Light, dark and system themes, six positions, right-to-left support
- Description, avatar, action buttons, progress bar and trailing text
- Promise toasts and in-place updates
- Optional sound per status
- Live regions, keyboard dismiss and
prefers-reduced-motionsupport - Strict TypeScript, ESM and CommonJS builds
Install
npm i @yusufceng1z/ding-reactshadcn/ui users can run npx shadcn@latest add @ding/ding.
Docs and live demos: https://ding.yusufcengiz.dev