Bundui.io

Sonner Promise Toast

Buttons 2

About

A button that triggers a promise-based Sonner toast, showing loading, success, and error states for async actions like syncing data.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Sonner Promise Toast to your project and fits it to your theme.

Code

How Sonner Promise Toast is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import ToastComponent from "@/components/ui/toast8";
import { Toaster } from "sonner";

export default function DefaultDemo() {
  return (
    <div className="flex min-h-64 w-full items-center justify-center bg-background text-foreground">
      <ToastComponent />
      <Toaster />
    </div>
  );
}

Dependencies

More by Bundui.io

View all
  • Fluid particles background

    Fluid particles background

    758
  • Floating paths

    Floating paths

    638
  • Text Gradient Scroll

    Text Gradient Scroll

    614
  • Stars

    Stars

    536
  • Image Comparison

    Image Comparison

    429
  • Magnetic Button

    Magnetic Button

    402
  • Marquee Effect

    Marquee Effect

    318
  • Wavy

    Wavy

    194

More in Buttons

View all
  • Button Save

    Button Save

    46
  • Button

    Button

    20
  • Eclipse Button

    Eclipse Button

    5
  • Button

    Button

    32
  • Button

    Button

    6
  • Button

    Button

    14
  • Button Group

    Button Group

    37
  • Split Button

    Split Button

    32