Sean Hello

Promise Toast

Component

About

A button that triggers a toast notification showing loading, success, and error states while an async action (like a deployment) is in progress.

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

Code

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

Usage.tsx

import Pattern from "@/components/ui/c-sonner-7";

export default function Demo() {
  return (
    <div className="flex items-center justify-center">
      <Pattern />
    </div>
  );
}

Dependencies

More by Sean Hello

View all
  • 3D Testimonails

    3D Testimonails

    3.3K
  • Line Charts 9

    Line Charts 9

    630
  • Alert

    Alert

    492
  • Area Charts 1

    Area Charts 1

    384
  • Line Charts 6

    Line Charts 6

    382
  • Scroll Area

    Scroll Area

    376
  • Area Charts 2

    Area Charts 2

    316
  • Navigation Menu

    Navigation Menu

    305

Explore more

Part of ReUI — browse the full library on 21st.dev.