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
  651ef0e4_823a_ca5b_7537_167198aec424["SonnerDemo()"]
  dd870919_1caa_850d_c5f6_053f9ba0c90f["sonner-demo.tsx"]
  651ef0e4_823a_ca5b_7537_167198aec424 -->|defined in| dd870919_1caa_850d_c5f6_053f9ba0c90f
  style 651ef0e4_823a_ca5b_7537_167198aec424 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/new-york/internal/sink/components/sonner-demo.tsx lines 7–24

export 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/internal/sink/components/sonner-demo.tsx.
Where is SonnerDemo() defined?
SonnerDemo() is defined in deprecated/www/registry/new-york/internal/sink/components/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