Skip to content

v0.0.2

Choose a tag to compare

@YusufCeng1z YusufCeng1z released this 07 Nov 02:59
· 64 commits to main since this release

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-react for React 18+
  • @yusufceng1z/ding-svelte for Svelte 5
  • @yusufceng1z/ding for 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-motion support
  • Strict TypeScript, ESM and CommonJS builds

Install

npm i @yusufceng1z/ding-react

shadcn/ui users can run npx shadcn@latest add @ding/ding.

Docs and live demos: https://ding.yusufcengiz.dev