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
  123fbd21_b0d0_7c53_593a_2077e9cb0807["sonner-description.tsx"]
  4b1d2128_46d9_46f0_b915_b6e1925b7876["button"]
  123fbd21_b0d0_7c53_593a_2077e9cb0807 --> 4b1d2128_46d9_46f0_b915_b6e1925b7876
  e750d152_1191_1793_7244_99c7f9c595f4["sonner"]
  123fbd21_b0d0_7c53_593a_2077e9cb0807 --> e750d152_1191_1793_7244_99c7f9c595f4
  style 123fbd21_b0d0_7c53_593a_2077e9cb0807 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import { Button } from "@/examples/radix/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/radix/sonner-description.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/radix).

Analyze Your Own Codebase

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

Try Supermodel Free