Flip Stat Board

Motion

A stat board where each number counts up with digits that flip in on a spring once in view. Pass values and labels; reduced motion shows the final value.

src/registry/premium/flip-stat-board.tsx/r/flip-stat-board.json

Installation#

bash
npx shadcn@latest add @minidev/flip-stat-board

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/flip-stat-board.json

Usage#

tsx
import { FlipStatBoard } from "@/components/ui/flip-stat-board"

export function Example() {
  return (
    <FlipStatBoard />
  )
}

API reference#

FlipStatBoard props
PropTypeDefault
stats{ value: number; label: string }[][ { value: 400, label: "Registry item...
classNamestring-

Dependencies#

npm

motion

Built from

No other MiniDev files

Examples#

All Animated React components

Learn more