Home / File/ callout.tsx — ui Source File

callout.tsx — ui Source File

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

File tsx ComponentRegistry UIPrimitives 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  898cf725_749c_1700_2d3a_596353b34523["callout.tsx"]
  79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"]
  898cf725_749c_1700_2d3a_596353b34523 --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81
  1b71bbd3_e795_7b1b_99f5_fb5978fd71cc["alert"]
  898cf725_749c_1700_2d3a_596353b34523 --> 1b71bbd3_e795_7b1b_99f5_fb5978fd71cc
  style 898cf725_749c_1700_2d3a_596353b34523 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

export function Callout({
  title,
  children,
  icon,
  className,
  ...props
}: React.ComponentProps<typeof Alert> & { icon?: string }) {
  return (
    <Alert className={cn("bg-muted/50", className)} {...props}>
      {icon && <span className="mr-4 text-2xl">{icon}</span>}
      {title && <AlertTitle>{title}</AlertTitle>}
      <AlertDescription>{children}</AlertDescription>
    </Alert>
  )
}

Subdomains

Functions

Dependencies

  • alert
  • utils

Frequently Asked Questions

What does callout.tsx do?
callout.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 callout.tsx?
callout.tsx defines 1 function(s): Callout.
What does callout.tsx depend on?
callout.tsx imports 2 module(s): alert, utils.
Where is callout.tsx in the architecture?
callout.tsx is located at deprecated/www/components/callout.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: deprecated/www/components).

Analyze Your Own Codebase

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

Try Supermodel Free