# Stats minimal

A shadcn/ui block from the [@ui-layouts](https://ui-layouts.com/) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/ui-layouts/stats-minimal).

- Page, with a live preview: https://shadcn.exchange/r/ui-layouts/stats-minimal
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/ui-layouts/stats-minimal-light-baa5c4b80fde6057.png
- Registry item: https://ui-layouts.com/r/stats-minimal.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui-layouts.com/r/stats-minimal.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- npm packages: `motion`

## Files

### `../../packages/blocks/src/stats-section/stats-minimal.tsx`

```tsx
import React from 'react'

const stats = [
  { label: 'Active Users', value: '1.2M+' },
  { label: 'Uptime', value: '99.9%' },
  { label: 'Response Time', value: '42ms' },
  { label: 'Global Edge', value: '250+' },
]

export const MinimalStats = () => {
  return (
    <section className="bg-white min-h-screen flex flex-col justify-center font-manrope">
      <div className="max-w-7xl mx-auto px-5">
        <div className="flex justify-between">
          {stats.map((stat) => (
            <div
              key={stat.label}
              className="flex flex-col gap-1 border-l border-zinc-200 px-6 py-2 hover:bg-zinc-200"
            >
              <p className="text-3xl font-bold tracking-tight text-zinc-900 ">
                {stat.value}
              </p>
              <p className="text-xs font-medium text-zinc-500 uppercase tracking-widest">
                {stat.label}
              </p>
            </div>
          ))}
        </div>
      </div>
    </section>
  )
}
```

### `./components/ui/timeline-animation.tsx`

```tsx
import type { Variants } from 'motion/react';
import { type HTMLMotionProps, motion, useInView } from 'motion/react';
import type React from 'react';

type TimelineContentProps<T extends keyof HTMLElementTagNameMap> = {
  children?: React.ReactNode;
  animationNum: number;
  className?: string;
  timelineRef: React.RefObject<HTMLElement | null>;
  as?: T;
  customVariants?: Variants;
  once?: boolean;
} & HTMLMotionProps<T>;

export const TimelineAnimation = <T extends keyof HTMLElementTagNameMap = 'div'>({
  children,
  animationNum,
  timelineRef,
  className,
  as,
  customVariants,
  once = true,
  ...props
}: TimelineContentProps<T>) => {
  const defaultSequenceVariants = {
    visible: (i: number) => ({
      filter: 'blur(0px)',
      y: 0,
      opacity: 1,
      transition: {
        delay: i * 0.5,
        duration: 0.5,
      },
    }),
    hidden: {
      filter: 'blur(20px)',
      y: 0,
      opacity: 0,
    },
  };

  const sequenceVariants = customVariants || defaultSequenceVariants;

  const isInView = useInView(timelineRef, {
    once,
  });

  const MotionComponent = motion[as || 'div'] as React.ElementType;

  return (
    <MotionComponent
      initial='hidden'
      animate={isInView ? 'visible' : 'hidden'}
      custom={animationNum}
      variants={sequenceVariants}
      className={className}
      {...props}
    >
      {children}
    </MotionComponent>
  );
};
```
