Usage Card

The rail-footer upgrade block: an icon chip, a title with a badge, one line of copy, a meter and a single full-width action, all inside one compact card.

tsx
import {
  UsageCard,
  UsageCardIcon,
  UsageCardTitle,
  UsageCardBadge,
  UsageCardDescription,
  UsageCardMeter,
  UsageCardAction,
} from "@pestoui/core"

Plan usage

tone on the card reaches the chip and the badge together. The meter slot takes any meter — a Progress here.

Agent runs82%

4,100 of 5,000 included runs used.

Warning tone, no chip

Leave the icon out and the header collapses to one track. Every part is optional.

Storage94%

470 of 500 GB used.

Props

PropTypeDefaultDescription
tone"muted" | "selected" | "success" | "warning" | "destructive" | "info" | "chart-1" … "chart-5""muted"On UsageCard. Inherited by the icon chip and the badge.
UsageCardIcon tonesame set—On UsageCardIcon. Overrides the card's tone for the chip alone.
childrenReactNode—On UsageCardMeter. Any meter — Progress, Usage Meter, Segmented Bar.
classNamestring—On any part. Set the card's width on UsageCard.

Pesto UI · 117 documented components