shadcn-syntax-toast-sonner

Official

Fix shadcn toasts with Sonner fast.

AuthorImpertio-Studio
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents common shadcn ui notification-toast failures by guiding you to the correct Sonner-only setup and API after the 2026 removal of the Radix Toast and useToast hook.

Core Features & Use Cases

  • Diagnose missing or broken toasts: resolves cases like no <Toaster /> mounted, duplicated <Toaster /> instances, or calling toast() from the wrong boundary.
  • Use the correct Sonner toast APIs: covers toast.success, toast.error, toast.warning, toast.info, toast.loading, toast.promise, toast.custom, and toast.dismiss plus their expected option shapes.
  • Migrate from removed shadcn patterns: replaces useToast() / Radix Toast usage with Sonner’s imperative toast() + the @/components/ui/sonner Toaster wrapper.
  • Real-world use cases: configure toast positioning, duration (including sticky Infinity), action/cancel buttons, and promise-driven loading→success/error state transitions.

Quick Start

Mount a single <Toaster /> in your app root, then call toast.success("Saved") from a component that includes "use client".

Dependency Matrix

Required Modules

None required

Components

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: shadcn-syntax-toast-sonner
Download link: https://github.com/Impertio-Studio/shadcn-ui-Claude-Skill-Package/archive/main.zip#shadcn-syntax-toast-sonner

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.