Atelier UI

Search components…

Search components…

Usage Meter

Stacked usage meter with a legend and warnings when nearing or exceeding the limit.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

UsageMeterProps

Also accepts all props of Omit<React.ComponentProps<"div">, "title">

PropTypeDefaultDescription
title* requiredstring——
segments* requiredUsageSegment[]——
limit* requirednumber——
unitstring""—
warnAtnumber0.85Fraction of the limit at which the meter turns to a warning

Install

$ npx shadcn@latest add https://chromotion.dev/r/usage-meter.json

More like this