AlertExample2() — ui Function Reference
Architecture documentation for the AlertExample2() function in alert-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 5be4b07e_f904_f6e9_d89c_005f957e376b["AlertExample2()"] b9bc1d07_0b4f_0761_d52a_f1369692acd3["alert-example.tsx"] 5be4b07e_f904_f6e9_d89c_005f957e376b -->|defined in| b9bc1d07_0b4f_0761_d52a_f1369692acd3 style 5be4b07e_f904_f6e9_d89c_005f957e376b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/radix/examples/alert-example.tsx lines 49–145
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"
/>
<AlertTitle>
Let's try one with icon, title and a <a href="#">link</a>.
</AlertTitle>
</Alert>
<Alert>
<IconPlaceholder
lucide="CircleAlertIcon"
tabler="IconExclamationCircle"
hugeicons="AlertCircleIcon"
phosphor="WarningCircleIcon"
remixicon="RiErrorWarningLine"
/>
<AlertDescription>
This one has an icon and a description only. No title.{" "}
<a href="#">But it has a link</a> and a <a href="#">second link</a>.
</AlertDescription>
</Alert>
<Alert>
<IconPlaceholder
lucide="CircleAlertIcon"
tabler="IconExclamationCircle"
hugeicons="AlertCircleIcon"
phosphor="WarningCircleIcon"
remixicon="RiErrorWarningLine"
/>
<AlertTitle>Success! Your changes have been saved</AlertTitle>
<AlertDescription>
This is an alert with icon, title and description.
</AlertDescription>
</Alert>
<Alert>
<IconPlaceholder
lucide="CircleAlertIcon"
tabler="IconExclamationCircle"
hugeicons="AlertCircleIcon"
phosphor="WarningCircleIcon"
remixicon="RiErrorWarningLine"
/>
<AlertTitle>
This is a very long alert title that demonstrates how the component
handles extended text content and potentially wraps across multiple
lines
</AlertTitle>
</Alert>
<Alert>
<IconPlaceholder
lucide="CircleAlertIcon"
tabler="IconExclamationCircle"
hugeicons="AlertCircleIcon"
phosphor="WarningCircleIcon"
remixicon="RiErrorWarningLine"
/>
<AlertDescription>
This is a very long alert description that demonstrates how the
component handles extended text content and potentially wraps across
multiple lines
</AlertDescription>
</Alert>
<Alert>
<IconPlaceholder
lucide="CircleAlertIcon"
tabler="IconExclamationCircle"
hugeicons="AlertCircleIcon"
phosphor="WarningCircleIcon"
remixicon="RiErrorWarningLine"
/>
<AlertTitle>
This is an extremely long alert title that spans multiple lines to
Domain
Subdomains
Source
Frequently Asked Questions
What does AlertExample2() do?
AlertExample2() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/examples/alert-example.tsx.
Where is AlertExample2() defined?
AlertExample2() is defined in apps/v4/registry/bases/radix/examples/alert-example.tsx at line 49.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free