toast-simple.tsx — ui Source File
Architecture documentation for toast-simple.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 30c53aba_91be_9049_78c9_c8e6e51f6472["toast-simple.tsx"] 64d95022_f8e1_3e94_bb97_22b3ebca757e["use-toast"] 30c53aba_91be_9049_78c9_c8e6e51f6472 --> 64d95022_f8e1_3e94_bb97_22b3ebca757e aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"] 30c53aba_91be_9049_78c9_c8e6e51f6472 --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939 style 30c53aba_91be_9049_78c9_c8e6e51f6472 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import { useToast } from "@/registry/new-york/hooks/use-toast"
import { Button } from "@/registry/new-york/ui/button"
export default function ToastSimple() {
const { toast } = useToast()
return (
<Button
variant="outline"
onClick={() => {
toast({
description: "Your message has been sent.",
})
}}
>
Show Toast
</Button>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- use-toast
Source
Frequently Asked Questions
What does toast-simple.tsx do?
toast-simple.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in toast-simple.tsx?
toast-simple.tsx defines 1 function(s): ToastSimple.
What does toast-simple.tsx depend on?
toast-simple.tsx imports 2 module(s): button, use-toast.
Where is toast-simple.tsx in the architecture?
toast-simple.tsx is located at deprecated/www/registry/new-york/examples/toast-simple.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free