Skip to content

Commit e33d7a6

Browse files
committed
Add reusable component for statistic card
1 parent 15a626b commit e33d7a6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { Card, Text } from "@mantine/core";
2+
3+
export default function StatsCard({
4+
title,
5+
stat,
6+
color,
7+
}: {
8+
title: string;
9+
stat: string;
10+
color: string;
11+
}) {
12+
return (
13+
<Card shadow="sm" padding="lg">
14+
<Text fw={700} ta="center" c="white">{stat}</Text>
15+
<Text c={color} ta="center">{title}</Text>
16+
</Card>
17+
);
18+
}

0 commit comments

Comments
 (0)