shadcn Sonner
An opinionated toast component for React. Preview it in Figma or edit it in DS Manager with your own tokens.
In the Figma kit
Default, success, info, warning, error and loading toasts with description and action. The Figma component uses the same variant and size names as the React code, so the design maps directly to the component in your project.
Figma kitReact8 stylesLast updated 12 Mar 2026
Sonner component for shadcn/ui in Figma
Sonner is an opinionated toast notification component for React. Use it to display transient messages such as “Saved successfully” or “Error connecting”. Toasts appear with built‑in animations and sensible positions, freeing you from designing your own notification system while ensuring consistency with the kit.
FAQs
What makes Sonner “opinionated”?
It comes with sensible defaults for positioning, spacing and animation to create elegant toast notifications.
Can I change the position of toasts?
Yes; adjust the placement to top‑right, bottom‑left or centered depending on your UI.
Does Sonner support different toast types?
Provide variants such as success, error, warning and info; each can be styled with unique colours and icons.
How long do toasts stay visible?
Set the duration property or allow users to manually dismiss notifications.