sonner-example.tsx — ui Source File
Architecture documentation for sonner-example.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR e2e8960a_6838_05b0_9eba_b14f87998294["sonner-example.tsx"] e750d152_1191_1793_7244_99c7f9c595f4["sonner"] e2e8960a_6838_05b0_9eba_b14f87998294 --> e750d152_1191_1793_7244_99c7f9c595f4 da02b53a_0c1d_d1a1_af31_74d99f1cdd7a["example"] e2e8960a_6838_05b0_9eba_b14f87998294 --> da02b53a_0c1d_d1a1_af31_74d99f1cdd7a 381135fe_5f7a_910a_b8a2_691e9756a016["button"] e2e8960a_6838_05b0_9eba_b14f87998294 --> 381135fe_5f7a_910a_b8a2_691e9756a016 style e2e8960a_6838_05b0_9eba_b14f87998294 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import { toast } from "sonner"
import {
Example,
ExampleWrapper,
} from "@/registry/bases/radix/components/example"
import { Button } from "@/registry/bases/radix/ui/button"
export default function SonnerExample() {
return (
<ExampleWrapper>
<SonnerBasic />
<SonnerWithDescription />
</ExampleWrapper>
)
}
function SonnerBasic() {
return (
<Example title="Basic" className="items-center justify-center">
<Button
onClick={() => toast("Event has been created")}
variant="outline"
className="w-fit"
>
Show Toast
</Button>
</Example>
)
}
function SonnerWithDescription() {
return (
<Example title="With Description" className="items-center justify-center">
<Button
onClick={() =>
toast("Event has been created", {
description: "Monday, January 3rd at 6:00pm",
})
}
variant="outline"
className="w-fit"
>
Show Toast
</Button>
</Example>
)
}
Domain
Subdomains
Dependencies
- button
- example
- sonner
Source
Frequently Asked Questions
What does sonner-example.tsx do?
sonner-example.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in sonner-example.tsx?
sonner-example.tsx defines 3 function(s): SonnerBasic, SonnerExample, SonnerWithDescription.
What does sonner-example.tsx depend on?
sonner-example.tsx imports 3 module(s): button, example, sonner.
Where is sonner-example.tsx in the architecture?
sonner-example.tsx is located at apps/v4/registry/bases/radix/examples/sonner-example.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/bases/radix/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free