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 DocumentationAtlas SearchAPI 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  497fa854_5433_2c00_75d3_95cd851c8208["alert-demo.tsx"]
  a0bb0c78_b08b_4b56_3f1a_1be780fd19c5["alert"]
  497fa854_5433_2c00_75d3_95cd851c8208 --> a0bb0c78_b08b_4b56_3f1a_1be780fd19c5
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  497fa854_5433_2c00_75d3_95cd851c8208 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  style 497fa854_5433_2c00_75d3_95cd851c8208 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Alert, AlertDescription, AlertTitle } from "@/examples/base/ui/alert"
import { CheckCircle2Icon, InfoIcon } from "lucide-react"

export default function AlertDemo() {
  return (
    <div className="grid w-full max-w-md items-start gap-4">
      <Alert>
        <CheckCircle2Icon />
        <AlertTitle>Payment successful</AlertTitle>
        <AlertDescription>
          Your payment of $29.99 has been processed. A receipt has been sent to
          your email address.
        </AlertDescription>
      </Alert>
      <Alert>
        <InfoIcon />
        <AlertTitle>New feature available</AlertTitle>
        <AlertDescription>
          We&apos;ve added dark mode support. You can enable it in your account
          settings.
        </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 DocumentationAtlas domain, SearchAPI 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/examples/base/alert-demo.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/base).

Analyze Your Own Codebase

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

Try Supermodel Free