Skip to content
GitHub (opens in a new tab)
PricingBlock

Plans

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

What a block is

A block is a kit component for a whole area of a screen, built only from other kit components and tokens. You import it like any component; nothing is copied into your app. Put it inside your page’s <main>: it brings no header or nav of its own.

When to use

  • a public pricing page or the pricing section of a landing page
  • plans need the common questions answered beside them
  • an upgrade screen that should answer billing questions in place

When not to use

  • only the plan cards, e.g. a small upgrade dialog — PricingPlans
  • usage against a plan limit — UsageMeter or UsageList
  • picking options in a form — TileGroup
  • invoices and the billing schedule — the billing-schedule pattern

Usage

Plan cards with one Monthly / Yearly switch and the questions people ask before they buy. The recommended plan's button is the one primary.

import { Plans } from "agentic-ds-kit";

export function Pricing({ plans, faqs }) {
  return (
    <main className="layout-content">
      <Plans
        title="Pricing"
        description="Start free. Upgrade when your team grows."
        plans={plans}            // PricingPlans plans; mark one recommended
        faqs={faqs}              // { id, question, answer }[]
        savingsLabel="Save 20% with yearly"
        defaultInterval="month"  // or interval + onIntervalChange
        onChoosePlan={(id, interval) => checkout(id, interval)}
      />
    </main>
  );
}

Layout

  • one column: heading and lead, PricingPlans, the FAQ
  • PricingPlans' cards wrap to one per row in a narrow block, and become a TileGroup with one button below 30rem
  • the block is its own inline-size container, so it works the same in a page column or full width

Props

NameTypeRequiredDefaultNotes
plansarrayYes—PricingPlans plans: { id, name, icon?, tagline?, fit?, price, yearlyPrice?, featuresLead?, features, ctaLabel?, recommended?, current? }[]. Mark one recommended: its CTA is the one solid primary.
intervalmonth | yearNo—Controlled interval.
defaultIntervalmonth | yearNomonthUncontrolled starting interval.
onIntervalChangefunctionNo—(interval) => void. The Monthly / Yearly switch changed.
onChoosePlanfunctionNo—(planId, interval) => void. A plan's CTA was pressed.
faqsarrayNo—{ id, question, answer }[]. Shown as an Accordion when there are two or more.
titlestringNoPricingBlock heading (h2).
descriptionstringNo—One line under the heading.
plansTitlestringNoChoose a planPricingPlans heading (h3).
faqTitlestringNoQuestions—
savingsLabelstringNo—Passed to PricingPlans, beside the switch.
footnotestringNo—Passed to PricingPlans, under the cards.
layoutstacked | wideNostackedPassed to PricingPlans: stacked cards, or one plan per row with features in two columns.
recommendedLabelstringNoRecommendedPassed to PricingPlans: the Badge word on the recommended plan, e.g. 'Most popular'.
currencystringNo$—
unitLabelstringNo/ seat / month—

Built from

  • Component
    →

    PricingPlans

    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.

  • 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
    →

    UsageList

    A list of usage limits, one a row: the limit's name, how much is used of it, a bar, and a short note.

  • Component
    →

    TileGroup

    Selectable cards for a plan or option picker.