Toasts
import { Toaster, toast } from 'scrollsheet';import 'scrollsheet/toast.css';
// mount once, anywhere<Toaster />;
// fire from any code, component or nottoast('Saved to your list');toast.success('Synced', { description: 'Two seconds ago.' });toast('Archived', { action: { label: 'Undo', onClick: restore } });toast() and <Toaster> support six positions, per-toast overrides, stacking, and two-axis
swipe dismissal. Each toast keeps its DOM element; overflow toasts are hidden rather than
dismissed.
Use toast.promise() for async work, useToasts() to read the queue, and classNames or
per-type icons to style it. See the API reference for every method
and prop.
Add a few toasts. They stack, dismiss after a timeout, and support swipe dismissal.
Coming from Sonner? Start by changing the import and adding the stylesheet, then check the migration differences:
import { toast, Toaster } from 'sonner';import { toast, Toaster } from 'scrollsheet';import 'scrollsheet/toast.css';Migrate from SonnerSupported Sonner APIs, CSS aliases, and compatibility gaps.