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 441e4844_16b6_d6b7_7d88_ad5cac7b24a2["ToastWithAction()"] 58978122_babc_a0cf_7705_5073effd5a88["toast-with-action.tsx"] 441e4844_16b6_d6b7_7d88_ad5cac7b24a2 -->|defined in| 58978122_babc_a0cf_7705_5073effd5a88 style 441e4844_16b6_d6b7_7d88_ad5cac7b24a2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/default/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/default/examples/toast-with-action.tsx.
Where is ToastWithAction() defined?
ToastWithAction() is defined in deprecated/www/registry/default/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