New
useToast
Toast
Transient, stacked notifications.
PHASE 4
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} />