Atelier UI

Search components…

Search components…

Snackbar

Bottom snackbar with an action button; the countdown pauses on hover or focus.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

SnackbarProps

Also accepts all props of Omit<React.ComponentProps<"div">, "children">

PropTypeDefaultDescription
open* requiredboolean——
onOpenChange* required(open: boolean) => void——
message* requiredReact.ReactNode——
actionLabelstring——
onAction() => void——
durationnumber5000Auto-dismiss delay in ms, 0 keeps it open

Install

$ npx shadcn@latest add https://chromotion.dev/r/snackbar.json

More like this