Snackbar
View in FigmaA brief, auto-dismissing notification that appears at the bottom of the screen.
Feedback & StatusImport
import { Snackbar } from "@/components/ui"API
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "success" | "critical" | "warning" | "neutral" | "neutral" | Semantic color of the snackbar. |
| open | boolean | true | Controls visibility. |
| duration | number | 5000 | Auto-dismiss delay in milliseconds. |
| action | { label: string; onClick: () => void } | — | Optional action button. |
| onDismiss | () => void | — | Callback when the snackbar is dismissed. |