DocsSupportPricing
Roadmap (has updates coming soon)XFigma3.7K
Sign inGet All-Access
  1. Components
  2. Sonner
  3. Sonner Promise
MarkdownShare

Shadcn Sonner Promise

Promise toast with loading state. Built with the Button component. Uses sonner alongside the shadcn primitives. A free, open source shadcn sonner example you can install with npx shadcn@latest add @reui/c-sonner-7 and edit as your own code.

Promise toast with loading state

For AI Agents

Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.

Best for: A deploy whose spinner becomes a success or error line when its promise settles, quoting the resolved name

When to use

  • Brief feedback after an action, such as a created event or an archived message with Undo
  • Progress of async work in one toast that updates in place, from loading to success or failure
  • Rich notifications for messages, invites, deploys, builds and integrations, with their own buttons

When not to use

  • Progress steps with their own messages that no single promise tracks: use the Sonner Updatable example
  • A status or warning that must stay on the page until the problem is fixed: use the Alert component
  • A choice the user has to make before the page can carry on: use the Alert Dialog component
  • An inbox panel that lists past activity for the user to review on demand: use the Sheet blocks

Agent notes

  • The Promise that resolves after setTimeout stands in for your deploy call; hand the real one to toast.promise
  • The examples ship only the sonner package and never render Toaster; mount the shadcn sonner Toaster once near your app root or no toast shows

Third-party API docs

  • Sonner v2: API reference, docs
Markdownhttps://reui.io/components/sonner/c-sonner-7.md
MCPget_example("c-sonner-7")
Installnpx shadcn@latest add @reui/c-sonner-7
Full index for agents:llms.txtReUI MCP setup

Shadcn Components in Sonner Promise

  • Button

Dependencies

  • sonner

About Shadcn Sonner Promise

Promise toast with loading state. Built with the Button component. Uses sonner alongside the shadcn primitives. A free, open source shadcn sonner example you can install with npx shadcn@latest add @reui/c-sonner-7 and edit as your own code.

What You Can Build With Shadcn Sonner Promise

  • Composes Button, so it drops into any project already using those components.
  • Install it with the shadcn CLI: npx shadcn@latest add @reui/c-sonner-7
  • Open source and free, with the full source on this page to copy or adapt.

More Shadcn Sonner Examples

  • Basic Basic toast notification.
  • With Description Toast notification with description.
  • Positions Toast positions
  • Variant Icons Toast variants with colored icons
  • Durations Toast duration options
  • Action Button Toast with action button
  • Action & Cancel Toast with custom close and cancel buttons
  • Rich Content Toast with custom rich content
  • Upload Progress Toast with upload progress simulation
  • Status Alert Toast with status alert markup
  • Accent Border Custom accent border toast
  • Invert Success Custom invert success toast

Related Shadcn Component Categories

  • Sortable

    Open-source shadcn sortable components for drag-and-drop lists, priority ranking, and reordering rows.

  • Spinner

    Open-source shadcn spinner components for loading indicators, async actions, and button states.

  • Stepper

    Open-source shadcn stepper components for multi-step forms, checkout flows, and onboarding.

  • Switch

    Open-source shadcn switch components for settings toggles, preferences, and binary choices.

  • Table

    Open-source shadcn table components for admin tables, data display, and responsive lists.

  • Tabs

    Open-source shadcn tabs components for segmented content, settings views, and dashboard sections.

Frequently Asked Questions

When should I use Shadcn Sonner Promise?

Use it for a deploy whose spinner becomes a success or error line when its promise settles, quoting the resolved name.

Shadcn Sonner as a whole fits:

  • Brief feedback after an action, such as a created event or an archived message with Undo
  • Progress of async work in one toast that updates in place, from loading to success or failure
  • Rich notifications for messages, invites, deploys, builds and integrations, with their own buttons

For progress steps with their own messages that no single promise tracks, use the Sonner Updatable example. For a status or warning that must stay on the page until the problem is fixed, use the Alert component. For a choice the user has to make before the page can carry on, use the Alert Dialog component. For an inbox panel that lists past activity for the user to review on demand, use the Sheet blocks.

How do I install Shadcn Sonner Promise?

Run npx shadcn@latest add @reui/c-sonner-7. The CLI copies the source into your project, so you own the code and can edit it freely.

Is Shadcn Sonner Promise free to use?

Yes. Every ReUI component example is open source and free for personal and commercial projects.

Which components does Shadcn Sonner Promise use?

It composes Button. The shadcn CLI installs those alongside the example.
PreviousAction ButtonNextAction & Cancel

Start building with ReUI Pro today.

Every Pro block, every style, and every future addition, with one license for unlimited projects.

Get All-Access

From $249, once. Lifetime updates.

Application

  • App ShellAdded 4 new App Shell blocks
  • Auth
  • Card
  • Dashboard
  • Dialog
  • Empty State
  • Event Calendar
  • Flow
  • Form
  • Gantt
  • Kanban Board
  • List
  • Navbar
  • Onboarding
  • Profile
  • Rich Text Editor
  • Schedule
  • Settings
  • Sheet
  • Stats
  • Timeline
  • Whiteboard
  • Wizard

Data Grid

  • Base
  • AdvancedNew Advanced category with 3 Data Grid blocks
  • Columns
  • Drag & Drop
  • Editing
  • Expansion
  • Filtering
  • Grouping
  • Virtualization

Charts

  • Area Chart
  • Bar Chart
  • Composed Chart
  • Line Chart
  • Pie Chart
  • Radial Chart
  • Sparkline
  • Status Tracker

AI & Agents

  • AI Chat
  • Agent Activity

Solutions

  • Dev Ops
  • AI Ops
  • CRM
  • Agents
  • Analytics
  • Billing
  • Bookings
  • Files
  • Inventory
  • Users

Templates

  • E-commerce
  • SaaS
  • Dashboard
  • Landing
  • All templates

eCommerce

  • Category Card
  • Checkout
  • Comparison
  • Coupon
  • Filter Sidebar
  • Product Card
  • Product Detail
  • Product Grid
  • Receipt
  • Review
  • Shopping Cart
  • Wishlist
  • Shop Hero

Marketing

  • Blog
  • Compare
  • Contact
  • CTA
  • FAQ
  • Hero
  • How It Works
  • Pricing

Resources

  • Components
  • Blocks
  • Icons
  • MCP for Agents
  • Docs
  • Support
  • Pricing
  • Tailwind Plus Alternative
  • Roadmap(has updates coming soon)
  • AffiliateSoon

Legal

  • Privacy Policy
  • Terms & Conditions
  • License
  • Refunds
  • Cookies

© 2026 ReUI. All rights reserved.

3.7K