Components › Blocks
Plan usage
The current plan with a meter per limit that warns near the limit and turns red at it.
Installation
npx plankui@latest add plan-usageUsage
import { PlanUsage } from "@/components/ui/plan-usage";
<PlanUsage plan="Team" price="$29 a month" usage={[{ label: "Seats", used: 7, limit: 10 }]} actions={<Button>Upgrade</Button>} />API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| plan | string | required | The plan's name. |
| price / renews | string | The price and renewal lines. | |
| usage | { label, used, limit, unit? }[] | required | One meter per limit; 80% warns, 100% is danger. |
| actions | ReactNode | Buttons such as Upgrade. |