Sonner
shadcn/uiAn opinionated toast component for React. Supports promises, custom styling, and multiple types.
Installation
Props
toast()
Name
Type
type
"success" | "error" | "info" | "warning" | "promise"
title
string
description
string
button
{ label: string, onClick: () => void }
promise
Promise
loading
string (for promise type)
success
string (for promise type)
duration
number (default: 5500)