ghaerdi

Neon Sonner Toaster

Component

About

A toast notification popup (built on the sonner library) for showing success, info, warning and error messages, skinned with a cyberpunk glass theme.

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

Code

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

Usage.tsx

"use client";

import { Button } from "@/components/ui/button";
import { Toaster } from "@/components/ui/sonner";
import { toast } from "sonner";

export default function SonnerDemo() {
  return (
    <div className="flex min-h-[320px] w-full items-center justify-center bg-background p-6">
      <div className="flex flex-wrap items-center justify-center gap-3">
        <Button
          onClick={() =>
            toast.success("Deploy succeeded", {
              description: "Build #482 shipped to production.",
            })
          }
        >
          Success
        </Button>
        <Button
          variant="outline"
          onClick={() =>
            toast.info("New version available", {
              description: "Refresh to load the latest build.",
            })
          }
        >
          Info
        </Button>
        <Button
          variant="destructive"
          onClick={() =>
            toast.error("Deploy failed", {
              description: "Build #483 failed health checks.",
            })
          }
        >
          Error
        </Button>
      </div>
      <Toaster />
    </div>
  );
}

Dependencies

More by ghaerdi

View all
  • Toast Notification

    Toast Notification

    3
  • Chart

    Chart

    2
  • Accordion

    Accordion

  • Calendar

    Calendar

  • Neon Glass Select

    Neon Glass Select

  • Skeleton

    Skeleton

  • Radio Group

    Radio Group

  • Neon Status Badge

    Neon Status Badge