CardsStats() — ui Function Reference
Architecture documentation for the CardsStats() function in stats.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 3d7508b1_6184_bc0b_a226_54215e77ad8e["CardsStats()"] 717f1e11_d3eb_c034_9671_7d0ef4ad88a9["stats.tsx"] 3d7508b1_6184_bc0b_a226_54215e77ad8e -->|defined in| 717f1e11_d3eb_c034_9671_7d0ef4ad88a9 style 3d7508b1_6184_bc0b_a226_54215e77ad8e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/components/cards/stats.tsx lines 59–116
export function CardsStats() {
return (
<div className="grid gap-4 sm:grid-cols-2 xl:grid-cols-2">
<Card>
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
<CardTitle className="text-sm font-normal">Total Revenue</CardTitle>
</CardHeader>
<CardContent className="pb-0">
<div className="text-2xl font-bold">$15,231.89</div>
<p className="text-xs text-muted-foreground">
+20.1% from last month
</p>
<ChartContainer config={chartConfig} className="h-[80px] w-full">
<LineChart
data={data}
margin={{
top: 5,
right: 10,
left: 10,
bottom: 0,
}}
>
<Line
type="monotone"
strokeWidth={2}
dataKey="revenue"
stroke="var(--color-revenue)"
activeDot={{
r: 6,
}}
/>
</LineChart>
</ChartContainer>
</CardContent>
</Card>
<Card>
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
<CardTitle className="text-sm font-normal">Subscriptions</CardTitle>
</CardHeader>
<CardContent>
<div className="text-2xl font-bold">+2350</div>
<p className="text-xs text-muted-foreground">
+180.1% from last month
</p>
<ChartContainer config={chartConfig} className="mt-2 h-[80px] w-full">
<BarChart data={data}>
<Bar
dataKey="subscription"
fill="var(--color-subscription)"
radius={4}
/>
</BarChart>
</ChartContainer>
</CardContent>
</Card>
</div>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does CardsStats() do?
CardsStats() is a function in the ui codebase, defined in deprecated/www/components/cards/stats.tsx.
Where is CardsStats() defined?
CardsStats() is defined in deprecated/www/components/cards/stats.tsx at line 59.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free