BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/dashboardblocks/kpi-01

kpi-01

dashboardblocks/kpi-01
FreeComponent

dashboardblocks publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by dashboardblocks on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://dashboardblocks.com/r/kpi-01.json

Source

registry/components/dashboardblocks/kpi/kpi-01.tsxdashboardblocks.com/r/kpi-01.json
1'use client'
2
3import { ValueFormatter } from '@/registry/components/dashboardblocks/chart'
4import { KPI, KPIContent, KPIValue } from '@/registry/components/dashboardblocks/kpi'
5import { Trend } from '@/registry/components/dashboardblocks/trend'
6
7import { CardDescription } from '@/components/ui/card'
8
9interface KPI1Props {
10 trend: number
11 title: string
12 value: number
13 formatter?: ValueFormatter
14}
15
16const exampleProps: KPI1Props = {
17 trend: 20.1,
18 title: 'Total Revenue',
19 value: 45231,
20 formatter: (value) => `$${value.toLocaleString()}`,
21}
22
23const KPI1 = (props: KPI1Props) => {
24 const { trend, title, value, formatter } = props
25
26 return (
27 <KPI>
28 <KPIContent className='space-y-2'>
29 <CardDescription>{title}</CardDescription>
30 <div className='flex flex-col sm:flex-row sm:items-center sm:justify-between space-y-1'>
31 <KPIValue value={value} formatter={formatter} animated />
32 <Trend trend={trend} />
33 </div>
34 </KPIContent>
35 </KPI>
36 )
37}
38
39export { KPI1, exampleProps as kpi1ExampleProps, type KPI1Props }

What it pulls in

Other registry items

  • https://dashboardblocks.com/r/animated-number.json
  • https://dashboardblocks.com/r/kpi.json
  • https://dashboardblocks.com/r/trend.json

Files it writes

  • registry/components/dashboardblocks/kpi/kpi-01.tsx

Facts

Registry
dashboardblocks
Type
registry:component
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

Docs on dashboardblocks dashboardblocks.com LGLabGreg/dashboardblocks on GitHub Raw registry item This item as JSON

More from dashboardblocks

All 36 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Activity Feedactivity-feeddashboardblocksComponentsFree1 dep
activity-feed-01activity-feed-01dashboardblocksComponentsFree1 dep
activity-feed-02activity-feed-02dashboardblocksComponentsFree1 dep
activity-feed-03activity-feed-03dashboardblocksComponentsFree1 dep
activity-feed-04activity-feed-04dashboardblocksComponentsFree1 dep
activity-feed-05activity-feed-05dashboardblocksComponentsFree1 dep
Animated Numberanimated-numberdashboardblocksComponentsFreeno deps
Animated Waveanimated-wavedashboardblocksComponentsFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex