section-cards.tsx — ui Source File
Architecture documentation for section-cards.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 952142c8_4715_4294_cdeb_bc1633cfc3ab["section-cards.tsx"] d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 952142c8_4715_4294_cdeb_bc1633cfc3ab --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 53b9ace0_ba3d_dd36_26a5_2a02e237653f["badge"] 952142c8_4715_4294_cdeb_bc1633cfc3ab --> 53b9ace0_ba3d_dd36_26a5_2a02e237653f 40a08bc2_b80f_cbb3_c3f5_f3ceafbb7d31["card"] 952142c8_4715_4294_cdeb_bc1633cfc3ab --> 40a08bc2_b80f_cbb3_c3f5_f3ceafbb7d31 style 952142c8_4715_4294_cdeb_bc1633cfc3ab fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { TrendingDownIcon, TrendingUpIcon } from "lucide-react"
import { Badge } from "@/registry/default/ui/badge"
import {
Card,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/registry/default/ui/card"
export function SectionCards() {
return (
<div className="*:data-[slot=card]:shadow-xs @xl/main:grid-cols-2 @5xl/main:grid-cols-4 grid grid-cols-1 gap-4 px-4 *:data-[slot=card]:bg-gradient-to-t *:data-[slot=card]:from-primary/5 *:data-[slot=card]:to-card dark:*:data-[slot=card]:bg-card lg:px-6">
<Card className="@container/card">
<CardHeader className="relative">
<CardDescription>Total Revenue</CardDescription>
<CardTitle className="@[250px]/card:text-3xl text-2xl font-semibold tabular-nums">
$1,250.00
</CardTitle>
<div className="absolute right-4 top-4">
<Badge variant="outline" className="flex gap-1 rounded-lg text-xs">
<TrendingUpIcon className="size-3" />
+12.5%
</Badge>
</div>
</CardHeader>
<CardFooter className="flex-col items-start gap-1 text-sm">
<div className="line-clamp-1 flex gap-2 font-medium">
Trending up this month <TrendingUpIcon className="size-4" />
</div>
<div className="text-muted-foreground">
Visitors for the last 6 months
</div>
</CardFooter>
</Card>
<Card className="@container/card">
<CardHeader className="relative">
<CardDescription>New Customers</CardDescription>
<CardTitle className="@[250px]/card:text-3xl text-2xl font-semibold tabular-nums">
1,234
</CardTitle>
<div className="absolute right-4 top-4">
<Badge variant="outline" className="flex gap-1 rounded-lg text-xs">
<TrendingDownIcon className="size-3" />
-20%
</Badge>
</div>
</CardHeader>
<CardFooter className="flex-col items-start gap-1 text-sm">
<div className="line-clamp-1 flex gap-2 font-medium">
Down 20% this period <TrendingDownIcon className="size-4" />
</div>
<div className="text-muted-foreground">
Acquisition needs attention
</div>
</CardFooter>
</Card>
<Card className="@container/card">
<CardHeader className="relative">
<CardDescription>Active Accounts</CardDescription>
<CardTitle className="@[250px]/card:text-3xl text-2xl font-semibold tabular-nums">
45,678
</CardTitle>
<div className="absolute right-4 top-4">
<Badge variant="outline" className="flex gap-1 rounded-lg text-xs">
<TrendingUpIcon className="size-3" />
+12.5%
</Badge>
</div>
</CardHeader>
<CardFooter className="flex-col items-start gap-1 text-sm">
<div className="line-clamp-1 flex gap-2 font-medium">
Strong user retention <TrendingUpIcon className="size-4" />
</div>
<div className="text-muted-foreground">Engagement exceed targets</div>
</CardFooter>
</Card>
<Card className="@container/card">
<CardHeader className="relative">
<CardDescription>Growth Rate</CardDescription>
<CardTitle className="@[250px]/card:text-3xl text-2xl font-semibold tabular-nums">
4.5%
</CardTitle>
<div className="absolute right-4 top-4">
<Badge variant="outline" className="flex gap-1 rounded-lg text-xs">
<TrendingUpIcon className="size-3" />
+4.5%
</Badge>
</div>
</CardHeader>
<CardFooter className="flex-col items-start gap-1 text-sm">
<div className="line-clamp-1 flex gap-2 font-medium">
Steady performance <TrendingUpIcon className="size-4" />
</div>
<div className="text-muted-foreground">Meets growth projections</div>
</CardFooter>
</Card>
</div>
)
}
Domain
Subdomains
Functions
Dependencies
- badge
- card
- lucide-react
Source
Frequently Asked Questions
What does section-cards.tsx do?
section-cards.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 section-cards.tsx?
section-cards.tsx defines 1 function(s): SectionCards.
What does section-cards.tsx depend on?
section-cards.tsx imports 3 module(s): badge, card, lucide-react.
Where is section-cards.tsx in the architecture?
section-cards.tsx is located at deprecated/www/registry/default/blocks/dashboard-01/components/section-cards.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/default/blocks/dashboard-01/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free