callout.tsx — ui Source File
Architecture documentation for callout.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 6e06e25b_dd13_9f74_5703_ecbb5cde6d1f["callout.tsx"] 79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"] 6e06e25b_dd13_9f74_5703_ecbb5cde6d1f --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81 9816548b_ba53_dabd_a625_cfede1b0ea32["alert"] 6e06e25b_dd13_9f74_5703_ecbb5cde6d1f --> 9816548b_ba53_dabd_a625_cfede1b0ea32 style 6e06e25b_dd13_9f74_5703_ecbb5cde6d1f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { cn } from "@/lib/utils"
import {
Alert,
AlertDescription,
AlertTitle,
} from "@/registry/new-york-v4/ui/alert"
export function Callout({
title,
children,
icon,
className,
variant = "default",
...props
}: React.ComponentProps<typeof Alert> & {
icon?: React.ReactNode
variant?: "default" | "info" | "warning"
}) {
return (
<Alert
data-variant={variant}
className={cn(
"bg-surface text-surface-foreground border-surface mt-6 w-auto rounded-xl md:-mx-1 **:[code]:border",
className
)}
{...props}
>
{icon}
{title && <AlertTitle>{title}</AlertTitle>}
<AlertDescription className="text-card-foreground/80">
{children}
</AlertDescription>
</Alert>
)
}
Domain
Subdomains
Functions
Dependencies
- alert
- utils
Source
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 Internationalization domain, RTLLayout 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 apps/v4/components/callout.tsx (domain: Internationalization, subdomain: RTLLayout, directory: apps/v4/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free