Component packs › Synapse › Usage Meter
A bar of flowing light that springs to new values, warms near the limit and pulses when full.
Usage Meter is a meter from Synapse, a component pack with 6 components: The interface pieces every AI product needs. Price: free.
Built with: spring fill, counting number, warning states.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
Install with the shadcn CLI: npx shadcn@latest add https://motionmart.store/r/usage-meter.json
| Prop | Type | Default | Description |
|---|---|---|---|
used (required) | number | ||
total (required) | number | ||
label | string | e.g. "Monthly tokens". | |
note | string | Small line under the bar, e.g. "Resets in 12 days". | |
format | (n: number) => string | 12,400 | Formats the numbers. Default: 12,400 |
autoplay | boolean | Showcase mode: fills up and resets on a loop. |
set(used: number, total?: number): voiddestroy(): voidimport UsageMeter from './UsageMeter';
<UsageMeter
label="Monthly tokens"
used={6240}
total={10000}
note="Resets in 12 days"
/>The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: AI product landing pages, AI chat and chat UI components.