sonner.json — ui Source File
Architecture documentation for sonner.json, a json file in the ui codebase.
Entity Profile
Source Code
{
"name": "sonner",
"dependencies": [
"sonner",
"next-themes"
],
"files": [
{
"name": "sonner.tsx",
"content": "\"use client\"\n\nimport { useTheme } from \"next-themes\"\nimport { Toaster as Sonner } from \"sonner\"\n\ntype ToasterProps = React.ComponentProps<typeof Sonner>\n\nconst Toaster = ({ ...props }: ToasterProps) => {\n const { theme = \"system\" } = useTheme()\n\n return (\n <Sonner\n theme={theme as ToasterProps[\"theme\"]}\n className=\"toaster group\"\n toastOptions={{\n classNames: {\n toast:\n \"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg\",\n description: \"group-[.toast]:text-muted-foreground\",\n actionButton:\n \"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground\",\n cancelButton:\n \"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground\",\n },\n }}\n {...props}\n />\n )\n}\n\nexport { Toaster }\n"
}
],
"type": "components:ui"
}
Source
Frequently Asked Questions
What does sonner.json do?
sonner.json is a source file in the ui codebase, written in json.
Where is sonner.json in the architecture?
sonner.json is located at deprecated/www/public/registry/styles/new-york/sonner.json (directory: deprecated/www/public/registry/styles/new-york).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free