shadcn-toast

Integrate sonner toast notifications with shadcn/ui components in React.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/xyqyear/my-claude-skills --skill shadcn-toast
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shadcn-toast
Source: https://github.com/xyqyear/my-claude-skills/tree/main/skills/shadcn-toast
Command: npx skills add https://github.com/xyqyear/my-claude-skills --skill shadcn-toast

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the integration of user-friendly toast notifications into React applications, providing clear feedback for user actions and asynchronous operations.

Core Features & Use Cases

  • Rich Toast Notifications: Implement success, error, warning, info, and loading states with customizable messages and descriptions.
  • Actionable Toasts: Include buttons for undo, retry, or other user interactions directly within toasts.
  • Promise Integration: Automatically manage loading, success, and error states for asynchronous operations.
  • Use Case: When a user successfully saves a form, display a success toast. If an API call fails, show an error toast with a retry option.

Quick Start

Use the shadcn-toast skill to display a success message.

Frequently Asked Questions about shadcn-toast

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add toast notifications to my React app with shadcn/ui?

You can add toast notifications by integrating the sonner toast library with your shadcn/ui React components. This combination enables rich success, error, warning, info, and loading states with customizable messages.

Can I display loading and success toasts for asynchronous API calls in React?

Yes, you can display loading and success toasts for asynchronous API calls using promise-based feedback. This automatically manages loading, success, and error states during asynchronous operations in your React application.

Do I need pnpm to use sonner toast notifications with shadcn/ui?

Yes, pnpm is required to install and integrate sonner toast notifications with shadcn/ui. You also need an existing React project setup with shadcn/ui components configured before adding the toast functionality.

What is the best way to add action buttons like retry to React toast notifications?

The best way to add action buttons like retry to React toast notifications is using actionable toasts. This feature allows you to include buttons directly within the toast for user interactions such as undo or retry actions.

Can I show a toast with a description and an action button in shadcn/ui?

Yes, you can show a toast with a description and an action button in shadcn/ui. The integration supports customizable descriptions alongside interactive buttons for immediate user interactions within the notification.