Snackbar Undo
A production-scale, light + dark Snackbar Undo component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add snackbar-undoLive preview available in the gallery.
Usage
import { SnackbarUndo } from "@lerpa/ui";
<SnackbarUndo />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| message | string | — | |
| countdownMs | number | — | |
| accent | string | — | |
| onUndo | () => void | — | |
| onTimeout | () => void | — | |
| autoStart | boolean | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.