Skip to content
GitHub (opens in a new tab)

PricingPlans

An in-product plan comparison for upgrades, with a Monthly / Yearly switch.

stableOrganismcontracts/pricingplans.json

Preview

PricingPlans

An in-product plan comparison for upgrades, not a marketing page.

Master

Switch Monthly and Yearly: prices roll with NumberTransition.

Choose a plan

Prices are example data.

Save 17% with yearly
  • Starter

    For trying things out

    Starter: $9 per seat per month, billed monthly

    • 1 workspace
    • 100 invoices / month
    • Email support
  • Pro

    Recommended

    For growing teams

    Pro: $29 per seat per month, billed monthly

    • 5 workspaces
    • Unlimited invoices
    • Integrations
    • Priority support
  • Business

    For finance teams

    Business: $79 per seat per month, billed monthly

    • Unlimited workspaces
    • SSO and audit log
    • Custom roles
    • Dedicated manager

Prices exclude tax. Change or cancel any time.

Usage

The recommended plan's CTA is the one solid primary and only that card is highlighted; mark one plan recommended. When it is the current plan, the CTA reads Current plan, is disabled and outline. The recommended label (recommendedLabel, default Recommended) and Current plan (neutral) are Badge words. layout stacked (default) puts one card per plan in a row; wide puts one plan per row with features in two columns and falls back to stacked below --grid-breakpoint-md. Below 30rem the cards become a TileGroup with one button.

Do's

  • upgrade or change plan inside the product
  • compare a few plans side by side with their features
  • switch monthly and yearly prices

Don'ts

  • usage against a plan limit — UsageMeter
  • picking options in a form — TileGroup
  • a whole public pricing section (plans and FAQ) — the Plans block
<PricingPlans
  plans={plans}
  interval={interval}
  onIntervalChange={setInterval}
  onSelect={choose}
  savingsLabel="Save 17% with yearly"
  footnote="Prices exclude tax. Change or cancel any time."
/>

An in-product plan comparison for upgrades, not a marketing page: a Monthly / Yearly switch, one card per plan with price, features and one CTA. Stacked (one card per plan) or wide (one plan per row, features in two columns). Only the recommended plan is highlighted; the recommended label and Current plan are words. Below 30rem the cards become a kit TileGroup with one button. Built on kit SegmentedControl, Badge, Button, NumberTransition and TileGroup.

When to use

  • upgrade or change plan inside the product
  • compare a few plans side by side with their features
  • switch monthly and yearly prices

When not to use

  • usage against a plan limit — UsageMeter
  • picking options in a form — TileGroup
  • a whole public pricing section (plans and FAQ) — the Plans block

What an agent reads

import { PricingPlans } from "agentic-ds-kit";
must
  • section aria-labelledby the h3 title; each plan name is an h4
  • the interval is a kit SegmentedControl radio group
  • the recommended label (default Recommended) and Current plan are Badge words, not colour alone; the recommended plan also has the one solid primary CTA; Current plan is a neutral Badge
  • prices roll with NumberTransition and are read as one phrase: plan, price, unit and billing, e.g. 'Pro: $20 per seat per month, billed yearly, save 17%'; the visible unit and billing line are aria-hidden
  • each CTA is described by its plan name; the current plan's CTA is disabled
  • plan icons are aria-hidden; featuresLead is plain text that describes the features list (aria-describedby); in wide layout the features stay one list, read row by row
  • below 30rem the plans are a kit TileGroup radio group named Plans; the current plan's tile is disabled, not hidden
defaults
  • title Choose a plan
  • layout stacked
  • recommendedLabel Recommended
  • currency $
  • unitLabel / seat / month
  • loading false
stops if
  • Do not invent a local PlanCard or PricingTable
  • Do not show more than one solid primary; current plan is never solid
  • Do not mark more than one plan recommended, and do not add a ribbon: the recommended plan is said by its Badge word
  • Do not mark the recommended plan by border colour alone
  • Do not use raw hex

From contracts/pricingplans.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.

Props

NameTypeRequiredDefaultNotes
plansarrayYes—{ id, name, icon?, tagline?, fit?, price, yearlyPrice?, featuresLead?, features, ctaLabel?, recommended?, current? }[]. fit is one line on how the plan fits current usage. icon is a decorative bare 16 Lucide icon (icon.muted) before the name, with no tile. featuresLead is one plain line above the features, e.g. 'Everything in Starter, plus'. Mark one plan recommended; only the first counts, with a warning in development.
intervalmonth | yearYes——
onIntervalChangefunctionYes——
onSelectfunctionYes——
titlestringNoChoose a plan—
descriptionstringNo——
savingsLabelstringNo——
footnotestringNo——
layoutstacked | wideNostackedstacked: one card per plan, sharing the row. wide: one plan per row, name, price and CTA beside the features in two columns (kit layout-split--secondary and layout-split). Wide falls back to stacked when the plans are narrower than --grid-breakpoint-md; below 30rem both become the TileGroup.
recommendedLabelstringNoRecommendedThe info Badge word on the recommended plan, e.g. 'Most popular'. Also used in the narrow TileGroup title.
currencystringNo$—
unitLabelstringNo/ seat / month—
loadingbooleanNofalse—
errorstringNo——
onRetryfunctionNo——
  • Component
    →

    UsageMeter

    Plan usage or AI credits against a limit: total, usage by category, daily bars toned against the cap, and a warning near the limit.

  • Component
    →

    TileGroup

    Selectable cards for a plan or option picker.

  • Block
    →

    Plans

    A whole pricing section: plan cards, a Monthly / Yearly switch and the questions people ask before they buy.

  • Component
    →

    SegmentedControl

    Choose one of a few visible options in a joined track. role=radiogroup, sm or md, icons optional.