Home / File/ sonner-description.tsx — ui Source File

sonner-description.tsx — ui Source File

Architecture documentation for sonner-description.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.

File tsx DocumentationAtlas SearchAPI 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  e713fed7_9337_27c4_df6f_ab7a4f36e850["sonner-description.tsx"]
  4544fa74_9b37_0912_c55e_f4ff161b8e83["button"]
  e713fed7_9337_27c4_df6f_ab7a4f36e850 --> 4544fa74_9b37_0912_c55e_f4ff161b8e83
  e750d152_1191_1793_7244_99c7f9c595f4["sonner"]
  e713fed7_9337_27c4_df6f_ab7a4f36e850 --> e750d152_1191_1793_7244_99c7f9c595f4
  style e713fed7_9337_27c4_df6f_ab7a4f36e850 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import { Button } from "@/examples/base/ui/button"
import { toast } from "sonner"

export function SonnerDescription() {
  return (
    <Button
      onClick={() =>
        toast("Event has been created", {
          description: "Monday, January 3rd at 6:00pm",
        })
      }
      variant="outline"
      className="w-fit"
    >
      Show Toast
    </Button>
  )
}

Subdomains

Dependencies

  • button
  • sonner

Frequently Asked Questions

What does sonner-description.tsx do?
sonner-description.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, SearchAPI subdomain.
What functions are defined in sonner-description.tsx?
sonner-description.tsx defines 1 function(s): SonnerDescription.
What does sonner-description.tsx depend on?
sonner-description.tsx imports 2 module(s): button, sonner.
Where is sonner-description.tsx in the architecture?
sonner-description.tsx is located at apps/v4/examples/base/sonner-description.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/base).

Analyze Your Own Codebase

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

Try Supermodel Free