toast-with-title.json — ui Source File
Architecture documentation for toast-with-title.json, a json file in the ui codebase.
Entity Profile
Source Code
{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "toast-with-title",
"type": "registry:example",
"registryDependencies": [
"toast"
],
"files": [
{
"path": "registry/new-york-v4/examples/toast-with-title.tsx",
"content": "\"use client\"\n\nimport { useToast } from \"@/registry/new-york-v4/hooks/use-toast\"\nimport { Button } from \"@/registry/new-york-v4/ui/button\"\n\nexport default function ToastWithTitle() {\n const { toast } = useToast()\n\n return (\n <Button\n variant=\"outline\"\n onClick={() => {\n toast({\n title: \"Uh oh! Something went wrong.\",\n description: \"There was a problem with your request.\",\n })\n }}\n >\n Show Toast\n </Button>\n )\n}\n",
"type": "registry:example"
}
]
}
Source
Frequently Asked Questions
What does toast-with-title.json do?
toast-with-title.json is a source file in the ui codebase, written in json.
Where is toast-with-title.json in the architecture?
toast-with-title.json is located at deprecated/www/public/r/styles/new-york-v4/toast-with-title.json (directory: deprecated/www/public/r/styles/new-york-v4).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free