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 2beab673_7f22_d830_351a_40a694a1269e["toast-simple.tsx"] 1d9c6c27_a443_c5fd_35f3_e80b7125bc9f["use-toast"] 2beab673_7f22_d830_351a_40a694a1269e --> 1d9c6c27_a443_c5fd_35f3_e80b7125bc9f d418ad18_b947_f4e5_6e4c_01100d7a63e4["button"] 2beab673_7f22_d830_351a_40a694a1269e --> d418ad18_b947_f4e5_6e4c_01100d7a63e4 style 2beab673_7f22_d830_351a_40a694a1269e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import { useToast } from "@/registry/default/hooks/use-toast"
import { Button } from "@/registry/default/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/default/examples/toast-simple.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/default/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free