ToastDestructive() — ui Function Reference
Architecture documentation for the ToastDestructive() function in toast-destructive.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 299d8894_693c_9d92_503f_46b1b54338f2["ToastDestructive()"] ae64072c_3ca1_fdf6_2632_214b747c4633["toast-destructive.tsx"] 299d8894_693c_9d92_503f_46b1b54338f2 -->|defined in| ae64072c_3ca1_fdf6_2632_214b747c4633 style 299d8894_693c_9d92_503f_46b1b54338f2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/default/examples/toast-destructive.tsx lines 7–25
export default function ToastDestructive() {
const { toast } = useToast()
return (
<Button
variant="outline"
onClick={() => {
toast({
variant: "destructive",
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 ToastDestructive() do?
ToastDestructive() is a function in the ui codebase, defined in deprecated/www/registry/default/examples/toast-destructive.tsx.
Where is ToastDestructive() defined?
ToastDestructive() is defined in deprecated/www/registry/default/examples/toast-destructive.tsx at line 7.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free