Home / Function/ ToastWithTitle() — ui Function Reference

ToastWithTitle() — ui Function Reference

Architecture documentation for the ToastWithTitle() function in toast-with-title.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  e784ff1f_1047_1d2c_8ad4_5367d1cac4fb["ToastWithTitle()"]
  a80ff2d9_944a_9fc7_fd82_faa5e7aa3553["toast-with-title.tsx"]
  e784ff1f_1047_1d2c_8ad4_5367d1cac4fb -->|defined in| a80ff2d9_944a_9fc7_fd82_faa5e7aa3553
  style e784ff1f_1047_1d2c_8ad4_5367d1cac4fb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/default/examples/toast-with-title.tsx lines 6–22

export default function ToastWithTitle() {
  const { toast } = useToast()

  return (
    <Button
      variant="outline"
      onClick={() => {
        toast({
          title: "Uh oh! Something went wrong.",
          description: "There was a problem with your request.",
        })
      }}
    >
      Show Toast
    </Button>
  )
}

Subdomains

Frequently Asked Questions

What does ToastWithTitle() do?
ToastWithTitle() is a function in the ui codebase, defined in deprecated/www/registry/default/examples/toast-with-title.tsx.
Where is ToastWithTitle() defined?
ToastWithTitle() is defined in deprecated/www/registry/default/examples/toast-with-title.tsx at line 6.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free