# Plan usage

The current plan with a meter per limit that warns near the limit and turns red at it. PlankUI component for React 19 and Tailwind CSS v4. Category: Blocks.

## Install

```bash
npx plankui@latest add plan-usage
```

## Usage

```tsx
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>} />
```

## Props

| 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. |

Source: https://github.com/VectorLabsHQ/plankui/blob/main/components/ui/plan-usage.tsx
