BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/dashboardblocks/usage-meter-08

usage-meter-08

dashboardblocks/usage-meter-08
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/usage-meter-08.json

Source

registry/components/dashboardblocks/usage-meter/usage-meter-08.tsxdashboardblocks.com/r/usage-meter-08.json
1'use client'
2import { AnimatedNumber } from '@/registry/components/dashboardblocks/animated-number'
3import { AnimatedWave } from '@/registry/components/dashboardblocks/animated-wave'
4import { Icon } from '@/registry/components/dashboardblocks/icon'
5import { Database, LucideIcon } from 'lucide-react'
6
7import { Button } from '@/components/ui/button'
8import { Card, CardHeader, CardTitle } from '@/components/ui/card'
9
10interface UsageMeter8Props {
11 daysLeft?: number
12 icon: LucideIcon
13 limit: number
14 onUpgrade?: () => void
15 title: string
16 unit: string
17 used: number
18}
19
20const exampleProps: UsageMeter8Props = {
21 daysLeft: 27,
22 icon: Database,
23 limit: 1500,
24 title: 'Storage',
25 unit: 'MB',
26 used: 430,
27}
28
29const UsageMeter8 = (props: UsageMeter8Props) => {
30 const { daysLeft, icon: IconComponent, limit, onUpgrade, title, unit, used } = props
31 const remaining = limit - used
32 const availablePercentage = Math.round((remaining / limit) * 100)
33
34 return (
35 <Card>
36 <CardHeader className='flex items-center justify-between'>
37 <div className='flex items-center gap-2'>
38 <Icon icon={IconComponent} size='sm' />
39 <CardTitle>{title}</CardTitle>
40 </div>
41 {onUpgrade && (
42 <Button variant='outline' size='sm' onClick={onUpgrade}>
43 Upgrade
44 </Button>
45 )}
46 </CardHeader>
47 <div className='space-y-6 pb-6'>
48 <div className='flex justify-center'>
49 <div className='relative size-[200px] overflow-hidden rounded-full bg-muted shadow-md'>
50 <AnimatedWave percentage={85} />
51 <div className='absolute inset-0 z-10 flex flex-col items-center justify-center space-y-2 text-center text-primary-foreground'>
52 <div className='space-y-1'>
53 <div className='text-sm font-medium tracking-wider'>REMAINING</div>
54 <div className='flex items-start gap-1 text-4xl font-bold leading-none'>
55 <AnimatedNumber
56 value={remaining}
57 formatter={(value) => value.toLocaleString()}
58 />
59 <span className='text-sm font-medium'>{unit}</span>
60 </div>
61 </div>
62 <div className='text-xs'>
63 {used} {unit} / {limit} {unit} used
64 </div>
65 </div>
66 </div>
67 </div>
68 <div
69 className={`grid gap-4 px-6 ${daysLeft !== undefined ? 'grid-cols-3' : 'grid-cols-2'}`}
70// … truncated

What it pulls in

npm packages

  • lucide-react

Other registry items

  • button
  • card
  • https://dashboardblocks.com/r/animated-number.json
  • https://dashboardblocks.com/r/animated-wave.json
  • https://dashboardblocks.com/r/icon.json

Files it writes

  • registry/components/dashboardblocks/usage-meter/usage-meter-08.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