Home / Function/ SonnerDemo() — ui Function Reference

SonnerDemo() — ui Function Reference

Architecture documentation for the SonnerDemo() function in sonner-demo.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  80107ee5_477b_a4ad_6096_2e1b494e068b["SonnerDemo()"]
  c07c169f_1e6c_c9b0_9a86_50a896ac3d01["sonner-demo.tsx"]
  80107ee5_477b_a4ad_6096_2e1b494e068b -->|defined in| c07c169f_1e6c_c9b0_9a86_50a896ac3d01
  style 80107ee5_477b_a4ad_6096_2e1b494e068b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/new-york/examples/sonner-demo.tsx lines 7–24

export default function SonnerDemo() {
  return (
    <Button
      variant="outline"
      onClick={() =>
        toast("Event has been created", {
          description: "Sunday, December 03, 2023 at 9:00 AM",
          action: {
            label: "Undo",
            onClick: () => console.log("Undo"),
          },
        })
      }
    >
      Show Toast
    </Button>
  )
}

Subdomains

Frequently Asked Questions

What does SonnerDemo() do?
SonnerDemo() is a function in the ui codebase, defined in deprecated/www/registry/new-york/examples/sonner-demo.tsx.
Where is SonnerDemo() defined?
SonnerDemo() is defined in deprecated/www/registry/new-york/examples/sonner-demo.tsx at line 7.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free