Back to Components
Cards
Stats Card
Animated statistics card with counting animation. Supports prefix/suffix, decimal values, and multiple visual variants.
PropsUsage ExampleVariations
0+
Happy Users0.0%
Uptime$0M
RevenueDependencies
- clsx
- tailwind-merge
Files
- components/ui/stats-card.tsx
Installation
Using shadcn CLI
npx shadcn add stats-card --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-mergeRelated Cards Components
Ambient Glow Card
A feature card with a rotating ambient aura for premium highlights.
Animated Card Hover
Hover tilt card with optional glare and depth effect.
Animated Gradient Border Card
Card with a rotating gradient border for premium emphasis.
Bento Card
Card component for bento grid layouts. Supports multiple sizes (1x1, 2x1, 1x2, 2x2) with optional gradient backgrounds.
Bento Grid
Asymmetric bento layout tiles with ambient glow and shine animations.
Card
Flexible card container with header, content, and footer sections.