ToastWithAction() — ui Function Reference
Architecture documentation for the ToastWithAction() function in toast-with-action.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD e8bfb969_a201_8ec1_9912_50c2e622e1f4["ToastWithAction()"] 29dc5043_4c19_6bce_6334_62323b82b842["toast-with-action.tsx"] e8bfb969_a201_8ec1_9912_50c2e622e1f4 -->|defined in| 29dc5043_4c19_6bce_6334_62323b82b842 style e8bfb969_a201_8ec1_9912_50c2e622e1f4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/new-york/examples/toast-with-action.tsx lines 7–24
export default function ToastWithAction() {
const { toast } = useToast()
return (
<Button
variant="outline"
onClick={() => {
toast({
title: "Uh oh! Something went wrong.",
description: "There was a problem with your request.",
action: <ToastAction altText="Try again">Try again</ToastAction>,
})
}}
>
Show Toast
</Button>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ToastWithAction() do?
ToastWithAction() is a function in the ui codebase, defined in deprecated/www/registry/new-york/examples/toast-with-action.tsx.
Where is ToastWithAction() defined?
ToastWithAction() is defined in deprecated/www/registry/new-york/examples/toast-with-action.tsx at line 7.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free