LogoLogoLogoLogoPaceKit
BlocksGSAP
Blocks
  • Introduction
  • Installation
  • Dashboard
  • Stats
  • Charts

Installation

PreviousNext

How to install dependencies and organize your app structure.

Note: Follows the same installation steps as

shadcn/ui

Create project

Run the init (with default options) command to create a new Next.js project or set up an existing one:

npm
yarn
pnpm
bun
npx shadcn@latest init

Add @pacekit to your components.json

components.json
{
  ...
  "registries": {
      "@pacekit": "https://ui.pacekit.dev/r/{name}.json"
  }
}

That's it

You’re ready to start adding components to your project

npm
yarn
pnpm
bun
npx shadcn@latest add @pacekit/blocks-stats-rich-metric-stat

The command above will add the TextReveal component to your project. You can then import it using the following syntax:

index.tsx

import { RichMetricStat } from "@/components/blocks/stats/rich-metric-stat";

export default function Home() {
  return (
       <RichMetricStat
          value="$45,231.89"
          title="Total Revenue"
          trendValue={20.1}
          footerLabel="+$8,432.12 from last month"
          footerSubtext="Based on 1,240 orders"
      />
  )
}
IntroductionStats

Built by Denish at PaceKit

On This Page

Create projectAdd @pacekit to your components.jsonThat's it

Better Auth Starter

Ship your SaaS faster with a solid starting point for TanStack Start and Next.js

Launch Now