Arc
ComponentsBlocksScreensDocsPricingTry the demo
Get Pro
Saved

Docs

IntroductionInstallationThemingMotionAI and MCPChangelog

Components136

ButtonAction buttonSplit buttonButton groupFloating button groupExpanding button groupCopy buttonAction swapIcon morphConfirm morphTheme switcher

Hold to confirmSwipe actionsReactions

Dropdown menuContext menuUser menu

InputTextareaPassword fieldPassword strengthSearch fieldExpanding searchInline edit

Number fieldMoney inputPhone inputScrub inputTag inputMention inputShortcut recorder

SelectComboboxMulti-selectMorph selectChip group

Radio cardsBilling toggleCheckboxRadio groupSwitchSegmented controlRatingToggle group

SliderElastic sliderRange histogram sliderRuler sliderWindow rangeNewProLens rangeNewPro

CalendarDate pickerDate range pickerTime pickerColor pickerEmoji pickerPro

Rich text editorSignature padFile dropzoneAvatar uploadPro

TabsBreadcrumbPaginationMega menu morphProTable of contents progressPro

Scroll areaAccordionExpandable cardResizable panelsExpandable text

DialogDrawerBottom sheetPopoverHover cardTooltipShare accessProConfirm popoverPro

AlertToastToast stackAnnouncement barCookie consentUndo toastPro

ProgressSkeletonStepperCountdownUsage meterOnboarding checklist

AvatarAvatar groupBadgePresence stackPro

CardMetric cardEmpty stateMetric tickerPro

Line chartBar chartDonut chartStreamgraphBrush chartWaffle chartSlope chartSparklineGaugeActivity heatmapAnimated counterRidgelineTreemapSplit barPro

SunburstProSankey flowProFunnel chartProRadar chartProRealtime streamProRace bar chartProData gridPro

Sortable data tableTree tableTree viewReorderable listFilter toolbarCode blockJSON viewer

TimelineComment threadChat thread

Image compareCarouselCard stack

Text revealIn-view titleText morphText shimmer

Blocks122

KPI drilldownProMetric explorerProRevenue explorerProMRR waterfallProCohort retentionProUsage forecastProJourney flowProUptime statusProPivot builderProChoropleth explorerProConnected scatterProHorizon chartProAccount healthPro

Budget variancePro

Small multiplesProLine replayPro

AI chatProAI composerProAI answerProModel pickerProModel arenaProPrompt studioProDocument extractionProAgent memoryProAI side panelProAI inline editProResearch runProAI insight cardProCatch upProAI feature launchProAI search barProAI setup wizardProCall insightsProLead scoringPro

Agent runProAgent tasksProAgent approvalsProAgent routinesProAgent orchestratorProMCP serversProKnowledge baseProEval suiteProAgent builderProAgent galleryPro

SidebarPro4Page headerCommand paletteNotification centerSelection toolbarProEmpty statesSearch resultsPro

Login and sign up5, free and Pro variantsOnboarding illustrationProOTP inputMulti-step formProTwo-factor setupProMagic linkPro

Settings pageProSettings commandProSecurity settingsProBilling overviewProUsage billingProCancel flowProOnboarding surveyProSpend alertPro

Team membersProInvite peopleProRoles and permissionsProProfile pagePro

API keysProWebhooksProIntegrationsProImport wizardNewProEnvironment variablesProDomain verifyProWebhook testerPro

Plan comparisonPricing calculatorProUsage pricingProCart drawerProCheckout summaryProLive checkoutProSeat managerProCredit top-upPro

Wallet cardProDelivery trackerProSeat mapPro

Activity feedProSupport widgetProFeature votingPro

File uploadMedia playerPro

Availability pickerProRelease readinessProFeedback boardProSmart schedulerProTask breakdownProGoal trackerPro

Hero sectionHero signupPro

Scroll storyProSpotlight gridProFeature bentoProComparison table

Logo marqueeStudio perspectivesProStats band

Changelog feedFAQ sectionContact sectionTeam showcaseProBlog grid

Site headerSite footerCTA sectionNewsletter signup

Activity terrainProRevenue globeProCustomer galaxyProSemantic zoomProLayout morphProExploded viewPro

Screens14

Metrics dashboardProMarket terminalPro

Kanban boardProProject boardProGantt timelinePro

Week calendarProMonth calendarNewPro

Team directoryPro

Inbox triageProSupport conversationProHelp centerPro

Product listingProProduct detailProInvoice studioPro

Special components106

Share sheetProAction morphProMorph navProDockProLiquid tab barProOrbit menuPro

Glass menuProGlass segmentedProGlass cardProGlass tab barPro

Sheet stackProWallet stackProControl centerProHolo cardProCard to articleProLink unfurlPro

Product galleryProLightbox galleryProPhoto gridProCover flowPro

Voice orbProNow playingProVoice recorderPro

Booking pillProActivity ringsProTime dialProDate reelPro

Keycap keyboardProSlot textSand textProTypewriter terminalPro

Stretch refreshProMorph loaderProSkeleton morphProBlack holeProCharge sessionPro

Sticker peelProTicket tearProPage curlProOrbit logosProPrize wheelPro

Dot gridProImage trailProGravity wellProInk fluidProCursor trail drawPro

Agent statusProTool callProAgent planProAgent timelineProContext windowProReasoning blockProSource cardsProModel cardProAI workflowProCode suggestionProGhost textProImage generationProDictation buttonProSpeech playerProMeeting summaryProReply draftProAgent handoffProPII redactionProResponse feedbackProLLM cost calculatorProProvider keysProGeneration statsProAI translateProTL;DR toggleProConnector setupProSmart form fillProEnrich columnProTicket routerProAsk your dataProAgent cursorProProvider statusProTraining runProAI commandProStarter promptsProAI mascotProImage revealProAI sparkProPixel mascotProGhost mascotProCube mascotProTone tunerProUpgrade promptProReferral cardProTrial bannerProTeam switcherProLive visitorsProSocial proof toastProInstall snippetPro

Data flowProPayment flowProDNS resolutionProModel trainingProMulti-region failoverProVector searchProBranch graphProAgent loopProMixture of expertsProSpeculative decodingProPrompt cacheProReasoning treePro
What’s new4 new
BlocksUsage billing

Usage billing

Pro

A usage based billing dashboard with a projected spend line, meters against limits, alerts, and an upgrade that morphs into a confirm sheet.

Live block · sample data

When to use

  • A billing page for usage priced SaaS or infrastructure products.
  • Admin dashboards where finance needs spend alerts and invoice history in one place.
  • Upgrade moments driven by limits, where the upgrade should explain what changes.

When not to use

  • Use billing-overview for flat seat based plans without meters.
  • Use plan-comparison or usage-pricing on a public pricing page.
  • Avoid it for a single quota; a usage meter component is enough.

Installation

Pro source and install commands unlock with a Pro plan.

Usage

Use this in the billing area of a usage priced product. Load meters, daily spend, and invoices from your billing provider, save alerts through onAlertsChange, and send the upgrade to your checkout; every charge in the preview is simulated.

example.tsx
1import { UsageBilling } from "@/components/arc/blocks/usage-billing/usage-billing";2 3export function BillingPage({ usage, plans }: { usage: BillingSnapshot; plans: PlanCatalog }) {4  return (5    <UsageBilling6      period={usage.period}7      daily={usage.dailySpend}8      meters={usage.meters}9      plan={plans.current}10      upgrade={plans.next}11      defaultAlerts={usage.alerts}12      onAlertsChange={alerts => saveAlerts(alerts)}13      onUpgrade={plan => startUpgrade(plan.id)}14      onDownloadInvoice={invoice => downloadPdf(invoice.id)}15    />16  );17}
Built fromAnimated counterText morphButton

API reference

UsageBilling

A usage based billing dashboard: spend so far with a projected line and live alert rules on the chart, per meter usage against limits with warning states, a spend alerts editor, invoice history with downloads, and a plan card that grows into an upgrade confirm sheet.

PropTypeDefaultDescription
period{ label: string; start: string; days: number; today: number }billingPeriodThe current billing period and which day it is.
dailynumber[]dailySpendUsage charges per day so far. Its length is the number of days elapsed.
budgetnumber2000Monthly budget drawn on the chart.
metersMeter[]metersMetered resources: id, name, unit (requests, gigabytes, minutes, invocations, seats), used, limit, and an overage price label.
planPlancurrentPlanThe current plan: name, monthly price, limits keyed by meter id, and perks.
upgradePlan | nullupgradePlanThe plan offered in the upgrade card. Pass null to hide the offer.
defaultAlertsSpendAlert[]spendAlertsInitial alerts: amount, email, and slack.
onAlertsChange(alerts: SpendAlert[]) => void–Called whenever alerts are added, edited, or removed.
invoicesInvoice[]invoicesPast invoices with number, period, issue date, amount, and status.
payment{ brand: string; last4: string; expires: string }paymentMethodCard shown on the plan card, the invoices header, and the confirm sheet.
onUpgrade(plan: Plan) => Promise<void> | void–Runs the upgrade. Resolve to switch plans, reject to show a declined message. Without it the upgrade is simulated.
onDownloadInvoice(invoice: Invoice) => Promise<void> | void–Fetches an invoice PDF. Without it the download is simulated.
currencystring"EUR"ISO currency code for every amount.
classNamestring–Class on the root.

Keyboard interactions

Tab
Moves through the chart, plan card, alerts, and invoice downloads.
Arrow leftorArrow right
Moves the chart cursor one day at a time while the chart has focus.
Enter in an alert amount
Commits the amount; alerts re sort by amount when the field loses focus.
Escape
Closes the upgrade sheet unless a payment is in progress.

Accessibility

  • The chart is an image with a spoken summary of spend, projection, and budget; its cursor also works from the keyboard.
  • Each meter is a meter role with a value text that says when it is near or projected over the limit.
  • Warnings pair an icon and words with color. Invoice status pairs a dot with a label.
  • The upgrade sheet is a modal dialog that traps Tab, focuses its heading, and returns focus to the plan card.
  • The sheet states that the preview takes no payment.

Motion

  • The spend line draws in once, the projection and alert rules follow; alert rules glide to their new height while you type an amount.
  • Meter bars fill with a short stagger. After an upgrade every limit grows, so the bars shrink and warnings clear in place.
  • The plan card grows into the confirm sheet on one spring and folds back into the card once the upgrade lands.
  • Invoice downloads swap their icon for a spinner, then a check, without changing width.
  • Reduced motion removes the draw in, stagger, and flight, and keeps short fades.

Responsive behavior

  • From 700px the chart and plan card share a row, and meters sit beside alerts.
  • Below 520px the invoice issue date and overage prices hide; everything else stacks.
  • The confirm sheet keeps a 12px margin and stays clear of sticky page chrome.

Performance

  • The chart is one SVG sized from a ResizeObserver; hover updates only the cursor and tooltip.
  • Bars animate transform scale only.
  • Sheet flight animates one element's transform and size.

Notes for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Choose it for products billed on usage: API calls, compute, storage, bandwidth, seats.
  • Feed daily spend from your billing provider; the projection is the average of the last seven days carried to the end of the period.
  • Set plan limits per meter id so the upgrade can recompute every bar.
  • Call your checkout or subscription update API in onUpgrade and reject on a declined card.
/components/blocks/usage-billing/markdown

The full library index for assistants is at /llms.txt.

Related

Billing overviewProBlockA billing page where the plan card morphs into a picker and usage, invoices, and card follow.Usage forecastProBlockA billing period usage chart with a forecast cone and a draggable budget that dates the crossing.Usage pricingProBlockA pricing calculator that finds your plan as you drag seats and traffic.Plan comparisonBlockCompare meaningful differences between plans and billing periods.Usage meterComponentShow what fills an allowance and how close it is to the limit.
PreviousLive checkoutNextActivity feed
Arc · 122 block pagesllms.txt

On this page

  • Preview
  • When to use
  • When not to use
  • Installation
  • Usage
  • API reference
  • Keyboard
  • Accessibility
  • Motion
  • Responsive behavior
  • Performance
  • Notes for AI
  • Related
View as Markdown

Usage and billing

Sep 1 to Sep 30 · day 24 of 30

Spend so far

€1,184.80€00123456789,001234567890012345678900123456789.0012345678900123456789
Projected
€1,538.29
Budget
€2,000.00

On pace to reach your €1,500 alert around Sep 30

Plan

ProPro€249 a month€249 a month

Renews Oct 1 · Visa ending 4242

Scale gives you room on api requests and bandwidth.

  • 25M API requests
  • 5 TB bandwidth
  • 12,000 build minutes
  • Priority support

Usage

Resets Oct 1
  • API requests8.42M of 10M10M
    Projected 10.53M, 5% overProjected 10.53M, 5% over€2 per extra million
  • Bandwidth1.84 TB of 2 TB2 TB
    Projected 2.3 TB, 15% overProjected 2.3 TB, 15% over€0.08 per extra GB
  • Build minutes3,120 min of 6,000 min6,000 min
    Projected 3,900 minProjected 3,900 min€0.01 per extra minute
  • Function invocations21.4M of 50M50M
    Projected 26.75MProjected 26.75M€0.60 per extra million
  • Seats18 seats of 20 seats20 seats
    Near limit. 2 seats leftNear limit. 2 seats left€19 per extra seat

Spend alerts

Email Slack
  • Sent Sep 22
  • 75% of budget

Invoices

Visa ending 4242
InvoiceIssuedAmountStatusDownload
August 2026NW-2026-008Sep 1€1,742.18PaidPaid
July 2026NW-2026-007Aug 1€1,618.40PaidPaid
June 2026NW-2026-006Jul 1€1,480.07PaidPaid
May 2026NW-2026-005Jun 1€1,302.55RefundedRefunded
April 2026NW-2026-004May 1€1,211.90PaidPaid