How to install dependencies and organize your app structure.
Note: Follows the same installation steps as
shadcn/ui
Run the init (with default options) command to create a new Next.js project or set up an existing one:
npx shadcn@latest init@pacekit to your components.json{
...
"registries": {
"@pacekit": "https://ui.pacekit.dev/r/{name}.json"
}
}You’re ready to start adding components to your project
npx shadcn@latest add @pacekit/blocks-stats-rich-metric-statThe command above will add the TextReveal component to your project. You can then import it using the following syntax:
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"
/>
)
}