alert-example.tsx — ui Source File
Architecture documentation for alert-example.tsx, a tsx file in the ui codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR b9bc1d07_0b4f_0761_d52a_f1369692acd3["alert-example.tsx"] da02b53a_0c1d_d1a1_af31_74d99f1cdd7a["example"] b9bc1d07_0b4f_0761_d52a_f1369692acd3 --> da02b53a_0c1d_d1a1_af31_74d99f1cdd7a defa270d_6a18_7513_c038_37a3507594e2["alert"] b9bc1d07_0b4f_0761_d52a_f1369692acd3 --> defa270d_6a18_7513_c038_37a3507594e2 452eda35_d2bf_4302_cb12_371f9f01e11b["badge"] b9bc1d07_0b4f_0761_d52a_f1369692acd3 --> 452eda35_d2bf_4302_cb12_371f9f01e11b 381135fe_5f7a_910a_b8a2_691e9756a016["button"] b9bc1d07_0b4f_0761_d52a_f1369692acd3 --> 381135fe_5f7a_910a_b8a2_691e9756a016 de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"] b9bc1d07_0b4f_0761_d52a_f1369692acd3 --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2 style b9bc1d07_0b4f_0761_d52a_f1369692acd3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {
Example,
ExampleWrapper,
} from "@/registry/bases/radix/components/example"
import {
Alert,
AlertAction,
AlertDescription,
AlertTitle,
} from "@/registry/bases/radix/ui/alert"
import { Badge } from "@/registry/bases/radix/ui/badge"
import { Button } from "@/registry/bases/radix/ui/button"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
export default function AlertExample() {
return (
<ExampleWrapper className="lg:grid-cols-1">
<AlertExample1 />
<AlertExample2 />
<AlertExample3 />
<AlertExample4 />
</ExampleWrapper>
)
}
function AlertExample1() {
return (
<Example title="Basic">
<div className="mx-auto flex w-full max-w-lg flex-col gap-4">
<Alert>
<AlertTitle>Success! Your changes have been saved.</AlertTitle>
</Alert>
<Alert>
<AlertTitle>Success! Your changes have been saved.</AlertTitle>
<AlertDescription>
This is an alert with title and description.
</AlertDescription>
</Alert>
<Alert>
<AlertDescription>
This one has a description only. No title. No icon.
</AlertDescription>
</Alert>
</div>
</Example>
)
}
function AlertExample2() {
return (
<Example title="With Icons">
<div className="mx-auto flex w-full max-w-lg flex-col gap-4">
<Alert>
<IconPlaceholder
lucide="CircleAlertIcon"
tabler="IconExclamationCircle"
hugeicons="AlertCircleIcon"
phosphor="WarningCircleIcon"
remixicon="RiErrorWarningLine"
/>
// ... (168 more lines)
Domain
Subdomains
Dependencies
- alert
- badge
- button
- example
- icon-placeholder
Source
Frequently Asked Questions
What does alert-example.tsx do?
alert-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 alert-example.tsx?
alert-example.tsx defines 5 function(s): AlertExample, AlertExample1, AlertExample2, AlertExample3, AlertExample4.
What does alert-example.tsx depend on?
alert-example.tsx imports 5 module(s): alert, badge, button, example, icon-placeholder.
Where is alert-example.tsx in the architecture?
alert-example.tsx is located at apps/v4/registry/bases/radix/examples/alert-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