@yusufceng1z/ding-react
v0.0.7
Published
React renderer for Ding spring-physics toasts.
Maintainers
Readme
@yusufceng1z/ding-react
Toasts with real spring physics for React 18+. One toast that morphs in place. No stylesheet to import.
Install
npm i @yusufceng1z/ding-reactUse
Render the toaster once, then call toast from anywhere.
import { Toaster, toast } from '@yusufceng1z/ding-react';
export default function App() {
return (
<>
<Toaster position="top-center" theme="system" />
<button onClick={() => toast.success('Saved')}>Save</button>
</>
);
}Works in the Next.js App Router as is: the package ships "use client", so Toaster can go straight into app/layout.tsx. See the Next.js guide.
Options, actions, progress, sound and accessibility are covered in the docs.
