- Components
- Feedback
Sonner
Alert-styled toasts tinted by variant on the sonner library. Mount <Toaster /> once, call toast() anywhere.
Installation#
npx shadcn add @ortaui/sonnerExamples#
Toasts#
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| toast(message, options) | sonner API | - | Also toast.success, toast.error, toast.promise, action and description. |
| theme / position | Toaster props | - | Forwarded to sonner. Default position is bottom-center. |