# Application Billing: Cost Allocation Panel

A cost by team panel with ruled rows of member count, a proportional meter, share percentage, and amount, reconciling to the invoice total.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/cost-allocation-panel
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Billing](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing)
- Created: 2026-07-10
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/cost-allocation-panel.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-billing-cost-allocation-panel
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button
- Installs to: `@/components/blocks/application-pro/billing/cost-allocation-panel`

## About this block

Cost Allocation Panel splits the June 2026 invoice across teams
for the Acme workspace, one ruled row per team with a seat
count, a proportional meter, a share percentage, and a tabular
amount sized for the widest value. Engineering carries 42% at
$94.50, Product 24%, Design 19%, Marketing 9%, and an unassigned
remainder row holds the one seat with no team at 6%. A total row
reconciles the rows to the $223.00 invoice, and the footer
explains that base plan and usage are split in proportion to
seats so the rows always sum to the invoice.

The teams are a plain const array with name, member count,
amount, and share, each meter driven by an inline width and a
role of meter with its own aria label. The reconciling total is
what makes the split trustworthy rather than a rough estimate.

## When to use

Reach for this block on a billing or finance reporting page when
one invoice is shared across teams, wired to your seat
assignment and cost split endpoint. Recompute the shares on any
seat move and keep the total pinned to the real invoice.

A natural flow around it on an Application Pro page:

**Before**

- [Spend trend chart](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing)

**After**

- [Seat management panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing)
- [Usage reports](https://www.shadcn-ui-blocks.com/blocks/application-pro/reports)

## What you can display

One strong use is invoice cost split by team. Other allocation
surfaces:

- **By project.** Swap teams for projects and split usage cost
  by the project a resource belongs to.
- **By cost center.** Group rows under finance cost centers for
  internal chargeback and export.
- **By environment.** Split infrastructure spend across
  production, staging, and development.

> Tip: always show a reconciling total; an allocation that does
> not sum to the invoice is the first thing finance will flag.

## More in Application Billing

- [Add-ons Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/addons-panel)
- [Billing Contacts Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/billing-contacts-card)
- [Billing Cycle Switch](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/billing-cycle-switch)
- [Cancel Flow Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/cancel-flow-blueprint)
- [Coupon Redemption Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/coupon-redemption-card)
- [Credits Balance Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/credits-balance-card)
- [Current Plan Usage](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/current-plan-usage)
- [Dunning Banner](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/dunning-banner)
- [Invoice Detail Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/invoice-detail-page)
- [Invoice History Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/invoice-history-table)
- [Pause Subscription Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/pause-subscription-panel)
- [Payment History Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/payment-history-table)
- [Payment Method Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/payment-method-panel)
- [Plan Change History](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/plan-change-history)
- [Plan Comparison Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/plan-comparison-table)
- [Proration Preview Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/proration-preview-card)
- [Receipt Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/receipt-card)
- [Refund Status Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/refund-status-card)
- [Seat Management Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/seat-management-panel)
- [Spend Trend Chart](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/spend-trend-chart)
- [Spending Limit Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/spending-limit-card)
- [Tax and Invoice Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/tax-and-invoice-settings)
- [Trial Status Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/trial-status-card)
- [Upgrade Comparison Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/upgrade-comparison-card)
- [Usage Alerts Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/usage-alerts-panel)
- [Usage Breakdown Bill](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/usage-breakdown-bill)
