boing
Spring physics, zero dependencies

Toasts that feel alive

Boing is a React toast that springs, squashes and morphs in place instead of stacking. Zero dependencies. One component and one function call.

Read the docs
Try it

How it feels

One toast on screen that changes shape as your app changes state, moved by a real spring.

One toast that morphs in place

When a toast changes, Boing reshapes the one already on screen. Loading becomes success, an action becomes its confirmation, and width, height and content move together, so nothing piles up in the corner.
Update in place
springEasing({ stiffness: 260, damping: 17 })

A spring you can tune

Motion comes from a damped spring, not a fixed-duration curve. springEasing() bakes the same spring into a CSS linear() easing and a duration, for your own transitions and Web Animations.
How the animation works

Accessible by default

Toasts are announced through polite status and assertive alert regions. Escape dismisses, Alt+T moves focus into the toast and pauses its timer. With reduced motion on, toasts fade instead of moving.
Toast accessibility

Styled with CSS variables

No stylesheet to import. Pick a light, dark or system theme, or set --boing-bg, --boing-radius and the status colours on .boing-viewport.
Styling reference

Click a spot to move this page’s toasts

<Toaster position="bottom-right" />

Any corner of the screen

Put the toaster top or bottom, left, centre or right with one position prop. Pick a spot on the screen here and this page’s toasts move there.
Toaster options

One component, one function

Render <Toaster /> once, then call toast() from anywhere. There is no provider to wrap and no stylesheet to import.

Setup guide
App.tsx
import { Toaster, toast } from 'react-boing';

export function App() {
  return (
    <>
      <Toaster />
      <button onClick={() => toast.success('Changes saved')}>
        Save
      </button>
    </>
  );
}

Try it in your app Make it boing.