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

Relationship Graph

Source Code

deprecated/www/registry/default/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/default/examples/sonner-demo.tsx.
Where is SonnerDemo() defined?
SonnerDemo() is defined in deprecated/www/registry/default/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