ToastAction() — ui Function Reference
Architecture documentation for the ToastAction() function in toast.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 196bb628_00e1_f3a9_8eb4_e500fa9f83da["ToastAction()"] ee33c9af_7b06_316e_b378_081a76680fee["toast.tsx"] 196bb628_00e1_f3a9_8eb4_e500fa9f83da -->|defined in| ee33c9af_7b06_316e_b378_081a76680fee style 196bb628_00e1_f3a9_8eb4_e500fa9f83da fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/new-york/ui/toast.tsx lines 61–70
>(({ className, ...props }, ref) => (
<ToastPrimitives.Action
ref={ref}
className={cn(
"inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",
className
)}
{...props}
/>
))
Domain
Subdomains
Source
Frequently Asked Questions
What does ToastAction() do?
ToastAction() is a function in the ui codebase, defined in deprecated/www/registry/new-york/ui/toast.tsx.
Where is ToastAction() defined?
ToastAction() is defined in deprecated/www/registry/new-york/ui/toast.tsx at line 61.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free