sonner
CommunityShow async results with elegant toast feedback.
Software Engineering#tanstack query#shadcn ui#ui feedback#sonner#toast.promise#react toast#stable id
Authorantonyfmunoz
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill removes the friction of manual UI status handling by helping you add, debug, and standardize toast notifications so users always get clear success/error/loading feedback during operations.
Core Features & Use Cases
- Global, hook-free toast UX: Mount
<Toaster />once and triggertoast.*from anywhere, including mutation callbacks and error handlers. - Promise and lifecycle feedback: Use
toast.promise(...)to convert async operations into consistent loading→success/error flows. - Progress, dedupe, and updates: Use stable
idvalues to update a single toast (e.g., progress and retries) instead of spamming the user. - React Query integration pattern: Wire
MutationCache/QueryCacheglobalonErrorto show default error toasts with minimal boilerplate. - Shadcn/ui + theme wiring: Place Sonner’s
<Toaster />at the correct root location and apply theme/richColors/classNames without common footguns.
Quick Start
Add a single root <Toaster /> to your app, then replace your scattered success/error UI with toast.promise(mutation.mutateAsync(...), { loading, success, error }) for each async action.
Dependency Matrix
Required Modules
None requiredComponents
references
đź’» Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: sonner Download link: https://github.com/antonyfmunoz/OS/archive/main.zip#sonner Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.