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 93c1184c_d2a3_3a21_fedc_8c6b1ee779d1["alert-example.tsx"] f56be340_a522_c6f7_dec3_5906873d14c8["example"] 93c1184c_d2a3_3a21_fedc_8c6b1ee779d1 --> f56be340_a522_c6f7_dec3_5906873d14c8 c5371605_0c86_c774_4288_f17b821ab086["alert"] 93c1184c_d2a3_3a21_fedc_8c6b1ee779d1 --> c5371605_0c86_c774_4288_f17b821ab086 bf2d636f_6015_e4c1_8092_f8992858a1ae["badge"] 93c1184c_d2a3_3a21_fedc_8c6b1ee779d1 --> bf2d636f_6015_e4c1_8092_f8992858a1ae 7328fa0a_98b6_fe77_42fd_0d1582b24604["button"] 93c1184c_d2a3_3a21_fedc_8c6b1ee779d1 --> 7328fa0a_98b6_fe77_42fd_0d1582b24604 de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"] 93c1184c_d2a3_3a21_fedc_8c6b1ee779d1 --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2 style 93c1184c_d2a3_3a21_fedc_8c6b1ee779d1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {
Example,
ExampleWrapper,
} from "@/registry/bases/base/components/example"
import {
Alert,
AlertAction,
AlertDescription,
AlertTitle,
} from "@/registry/bases/base/ui/alert"
import { Badge } from "@/registry/bases/base/ui/badge"
import { Button } from "@/registry/bases/base/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, UIPrimitives 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/base/examples/alert-example.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: apps/v4/registry/bases/base/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free