useToast
Toast
Transient paper-note notifications.
Preview
Installation
Import from the package. Tree-shakeable, only shipped code ships.
import { ToastContainer, useToast } from 'sketchpad-ui';Usage
const { toasts, show, dismiss } = useToast();
<Button onClick={() => show('Saved!')}>Save</Button>
<ToastContainer toasts={toasts} onDismiss={dismiss} />