Home / File/ alert-demo.tsx — ui Source File

alert-demo.tsx — ui Source File

Architecture documentation for alert-demo.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  755d651b_40c5_f9f1_dc31_05752383bc22["alert-demo.tsx"]
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  755d651b_40c5_f9f1_dc31_05752383bc22 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  9816548b_ba53_dabd_a625_cfede1b0ea32["alert"]
  755d651b_40c5_f9f1_dc31_05752383bc22 --> 9816548b_ba53_dabd_a625_cfede1b0ea32
  style 755d651b_40c5_f9f1_dc31_05752383bc22 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { AlertCircleIcon, CheckCircle2Icon, PopcornIcon } from "lucide-react"

import {
  Alert,
  AlertDescription,
  AlertTitle,
} from "@/registry/new-york-v4/ui/alert"

export default function AlertDemo() {
  return (
    <div className="grid w-full max-w-xl items-start gap-4">
      <Alert>
        <CheckCircle2Icon />
        <AlertTitle>Success! Your changes have been saved</AlertTitle>
        <AlertDescription>
          This is an alert with icon, title and description.
        </AlertDescription>
      </Alert>
      <Alert>
        <PopcornIcon />
        <AlertTitle>
          This Alert has a title and an icon. No description.
        </AlertTitle>
      </Alert>
      <Alert variant="destructive">
        <AlertCircleIcon />
        <AlertTitle>Unable to process your payment.</AlertTitle>
        <AlertDescription>
          <p>Please verify your billing information and try again.</p>
          <ul className="list-inside list-disc text-sm">
            <li>Check your card details</li>
            <li>Ensure sufficient funds</li>
            <li>Verify billing address</li>
          </ul>
        </AlertDescription>
      </Alert>
    </div>
  )
}

Subdomains

Functions

Dependencies

  • alert
  • lucide-react

Frequently Asked Questions

What does alert-demo.tsx do?
alert-demo.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-demo.tsx?
alert-demo.tsx defines 1 function(s): AlertDemo.
What does alert-demo.tsx depend on?
alert-demo.tsx imports 2 module(s): alert, lucide-react.
Where is alert-demo.tsx in the architecture?
alert-demo.tsx is located at apps/v4/registry/new-york-v4/examples/alert-demo.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/examples).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free