Kinetic UI
Back to Introduction
General

Stats Section

A highly prominent metrics layout featuring animated count-ups.

Quick Actions
CLI Installation
npx kinetic-ui-cli@latest add stats-section
stats-section
0.0M+

Million Users

0.0%

Uptime

0

Countries

0K+

5-Star Ratings

Overview

The StatsSection leverages our internal AnimatedCounter component to build the quintessential metric display block seen on every modern SaaS and agency landing page. It features automatic, scroll-triggered count-up animations, staggered delays, and optional icon slots.

Installation

npm install framer-motion lucide-react

Usage

import { StatsSection } from "@/components/creative/stats-section"
import { Users, Code, Zap } from "lucide-react"

export default function Metrics() {
  const stats = [
    { 
      value: 1.2, 
      label: "Active Users", 
      suffix: "M+", 
      decimals: 1,
      icon: <Users />
    },
    { 
      value: 50, 
      label: "Integrations", 
      prefix: "",
      icon: <Code />
    },
    { 
      value: 99.9, 
      label: "Uptime",
      suffix: "%",
      decimals: 1,
      icon: <Zap />
    }
  ]

  return (
    <section className="py-20 bg-black">
      <StatsSection stats={stats} layout="row" />
    </section>
  )
}

Usage Guide

1. Import the Component

Import the component into your React or Next.js page:

import { StatsSection } from "@/components/creative/stats-section";

2. Implementation Example

Render the component and customize its behavior by passing props:

import { StatsSection } from "@/components/creative/stats-section";

export default function Example() {
  return (
    <div className="w-full flex items-center justify-center p-8">
      <StatsSection
        stats{/* value */}
        layout{/* value */}
      />
    </div>
  );
}
Performance Notes
  • Uses CSS hardware acceleration via GPU transform-binds.
  • Damped interpolation minimizes paint-redraw flashes.
  • Tree-shakable import: only compiles elements requested.
Accessibility Notes
  • Full keyboard focus-ring navigation support (`Tab`/`Shift+Tab`).
  • ARIA roles mapped correctly for assistive screen readers.
  • Respects `prefers-reduced-motion` system toggles.