Home / Function/ SonnerWithDescription() — ui Function Reference

SonnerWithDescription() — ui Function Reference

Architecture documentation for the SonnerWithDescription() function in sonner-example.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  0a3ee1db_0121_0771_4af7_12b41ce35055["SonnerWithDescription()"]
  3523d0c1_4d8d_5096_96cd_eccb8aa9f67f["sonner-example.tsx"]
  0a3ee1db_0121_0771_4af7_12b41ce35055 -->|defined in| 3523d0c1_4d8d_5096_96cd_eccb8aa9f67f
  style 0a3ee1db_0121_0771_4af7_12b41ce35055 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/examples/sonner-example.tsx lines 34–50

function SonnerWithDescription() {
  return (
    <Example title="With Description" className="items-center justify-center">
      <Button
        onClick={() =>
          toast("Event has been created", {
            description: "Monday, January 3rd at 6:00pm",
          })
        }
        variant="outline"
        className="w-fit"
      >
        Show Toast
      </Button>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

What does SonnerWithDescription() do?
SonnerWithDescription() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/sonner-example.tsx.
Where is SonnerWithDescription() defined?
SonnerWithDescription() is defined in apps/v4/registry/bases/base/examples/sonner-example.tsx at line 34.

Analyze Your Own Codebase

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

Try Supermodel Free