ToastDemo() — ui Function Reference
Architecture documentation for the ToastDemo() function in toast-demo.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD ebc9d826_bb5d_7d67_2b43_e3dceead12e7["ToastDemo()"] 6460ae1a_ef8c_e596_3858_2ffc71b0c722["toast-demo.tsx"] ebc9d826_bb5d_7d67_2b43_e3dceead12e7 -->|defined in| 6460ae1a_ef8c_e596_3858_2ffc71b0c722 style ebc9d826_bb5d_7d67_2b43_e3dceead12e7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/new-york/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/new-york/internal/sink/components/toast-demo.tsx.
Where is ToastDemo() defined?
ToastDemo() is defined in deprecated/www/registry/new-york/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