BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/dashboardblocks/progress-kpi-02

progress-kpi-02

dashboardblocks/progress-kpi-02
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/progress-kpi-02.json

Source

registry/components/dashboardblocks/kpi/progress-kpi-02.tsxdashboardblocks.com/r/progress-kpi-02.json
1'use client'
2
3import { AnimatedNumber } from '@/registry/components/dashboardblocks/animated-number'
4import { Icon } from '@/registry/components/dashboardblocks/icon'
5import { KPI, KPIContent, KPIValue } from '@/registry/components/dashboardblocks/kpi'
6import { ProgressBar } from '@/registry/components/dashboardblocks/progress-bar'
7import { ClipboardList } from 'lucide-react'
8
9import { CardTitle } from '@/components/ui/card'
10
11interface ProgressKPIBar {
12 label: string
13 target: string
14 percentage: number
15 fillClassName?: string
16 trackClassName?: string
17}
18
19interface ProgressKPI2Props {
20 title: string
21 value: number
22 progressBars: ProgressKPIBar[]
23}
24
25const exampleProps: ProgressKPI2Props = {
26 title: 'Task Completion',
27 value: 87,
28 progressBars: [
29 {
30 label: 'completed',
31 target: '51 tasks',
32 percentage: 59,
33 fillClassName: 'bg-green-600',
34 },
35 {
36 label: 'in progress',
37 target: '26 tasks',
38 percentage: 30,
39 fillClassName: 'bg-blue-600',
40 },
41 {
42 label: 'not started',
43 target: '10 tasks',
44 percentage: 11,
45 fillClassName: 'bg-red-600',
46 },
47 ],
48}
49
50const ProgressKPI2 = (props: ProgressKPI2Props) => {
51 const { title, value, progressBars } = props
52 return (
53 <KPI>
54 <KPIContent className='space-y-1'>
55 <div className='flex items-center justify-between'>
56 <CardTitle>{title}</CardTitle>
57 <Icon icon={ClipboardList} variant='secondary' />
58 </div>
59 <KPIValue
60 value={value}
61 formatter={(value) => `${value.toLocaleString()}/100`}
62 animated
63 />
64 <div className='mt-5 space-y-3'>
65 {progressBars.map((bar) => {
66 const safePercentage = Number.isFinite(bar.percentage) ? bar.percentage : 0
67 const normalized = Math.min(100, Math.max(0, safePercentage))
68
69 return (
70 <div key={bar.label} className='space-y-1.5 text-sm text-muted-foreground'>
71 <div className='flex items-center justify-between'>
72 <span>
73 <span className='font-semibold text-foreground'>
74 <AnimatedNumber
75 value={normalized}
76 formatter={(value) => `${value.toLocaleString()}%`}
77 />
78 </span>{' '}
79 {bar.label}
80 </span>
81 <span className='font-semibold text-foreground'>{bar.target}</span>
82// … truncated

What it pulls in

Other registry items

  • https://dashboardblocks.com/r/animated-number.json
  • https://dashboardblocks.com/r/icon.json
  • https://dashboardblocks.com/r/kpi.json
  • https://dashboardblocks.com/r/progress-bar.json

Files it writes

  • registry/components/dashboardblocks/kpi/progress-kpi-02.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