ToastDemo() — ui Function Reference
Architecture documentation for the ToastDemo() function in toast-demo.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 721e3e2c_4f89_2d6b_7151_215fb23f0bf3["ToastDemo()"] 899f87d2_cd90_df70_070e_90b612ed2756["toast-demo.tsx"] 721e3e2c_4f89_2d6b_7151_215fb23f0bf3 -->|defined in| 899f87d2_cd90_df70_070e_90b612ed2756 style 721e3e2c_4f89_2d6b_7151_215fb23f0bf3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/default/internal/sink/components/toast-demo.tsx lines 7–26
export function ToastDemo() {
const { toast } = useToast()
return (
<Button
variant="outline"
onClick={() => {
toast({
title: "Scheduled: Catch up ",
description: "Friday, February 10, 2023 at 5:57 PM",
action: (
<ToastAction altText="Goto schedule to undo">Undo</ToastAction>
),
})
}}
>
Add to calendar
</Button>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ToastDemo() do?
ToastDemo() is a function in the ui codebase, defined in deprecated/www/registry/default/internal/sink/components/toast-demo.tsx.
Where is ToastDemo() defined?
ToastDemo() is defined in deprecated/www/registry/default/internal/sink/components/toast-demo.tsx at line 7.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free