Skip to content
New

Pricing, plans

beta

One to four plans with a monthly or yearly switch; prices roll to the new amount, in the project's locale.

npx rasengan-ui add pricing-plans

Simple pricing that grows with you

Every plan sends unlimited invoices. Pay for the people and the automation you need.

2 months free
  • Solo

    For a freelancer starting out.

    $0/ month

    • Unlimited invoices
    • Card and bank payments
    • Two reminder emails
  • Studio

    Most popular

    For a small team with regular clients.

    $19/ month

    • Everything in Solo
    • Up to five people
    • Recurring invoices
    • Mobile money
    • Custom reminders
  • Agency

    For agencies with many clients and projects.

    $49/ month

    • Everything in Studio
    • Unlimited people
    • Client portal
    • Accounting exports
    • Priority support

Prices exclude taxes. Every paid plan starts with 14 free days.

Use it
A product with a few fixed plans, compared on price and features.
Avoid it
Usage-based or quote-only pricing; more than four plans.

Installation

Terminal
npx rasengan-ui add pricing-plans

It installs into components/blocks/pricing-plans/, with what it uses (Card, Badge, Button, Toggle group, Number roll) and lib/blocks.ts.

Usage

Without content, the block shows its example. Pass your own, typed by the block's schema, from a content file (here, the example with one field changed):

app/_routes/index.page.tsx
import { PricingPlans } from "@/components/blocks/pricing-plans";
import { home } from "@/content/home";
 
export default function Home() {
  return <PricingPlans content={home.pricing} />;
}
content/home.ts
import { example, type PricingPlansContent } from "@/components/blocks/pricing-plans";
 
export const home = {
  pricing: {
    ...example,
    title: "Your section title",
  } satisfies PricingPlansContent,
};

Monthly and yearly

With billing, a switch above the plans changes every monthly plan to its yearly price, and each price rolls to its new amount with Number roll (with motion off, it simply changes). A plan's yearly is the price of a whole year; left out, it is twelve months of price. Plans billed once keep their price. Leave billing out for plans that have only one period.

billing: { label: "Billing period", month: "Monthly", year: "Yearly", saving: "2 months free" },
plans: [{ name: "Studio", price: { amount: 19, currency: "USD" }, period: "month", yearly: { amount: 190, currency: "USD" } /* … */ }],

Prices are formatted with Intl.NumberFormat in locale: { amount: 19, currency: "EUR" } reads "19,00 €" in fr-FR.

Content

FieldTypeLimitsGuidance
titlestring8–70 charsThe pricing promise: 'Simple pricing that grows with you'.
sublineoptionalstring≤ 180 chars
plansobject[]1–4 itemsOne to four plans, cheapest first, at most one highlighted.
plans[].namestring1–24 chars
plans[].priceobject
plans[].price.amountnumber≥ 0
plans[].price.currencystring3–3 charsAn ISO 4217 code: 'EUR', 'USD', 'XAF'.
plans[].periodoptional"month" | "year" | "once"default "month"
plans[].descriptionstring≤ 100 chars
plans[].featuresstring[]1–8 items
plans[].ctaobject
plans[].cta.labelstring1–32 charsA verb first, two to four words: 'Start free', 'Book a table'.
plans[].cta.hrefstringA path ('/pricing'), an anchor ('#menu'), or a full URL.
plans[].highlightedoptionalbooleandefault falseAt most one highlighted plan.
plans[].yearlyoptionalobjectThe price for a whole year, for a monthly plan: usually ten or eleven months. Left out, twelve months of the price.
plans[].yearly.amountnumber≥ 0
plans[].yearly.currencystring3–3 charsAn ISO 4217 code: 'EUR', 'USD', 'XAF'.
highlightLabelstring1–24 charsThe badge on the highlighted plan: 'Most popular'.
periodsobjectWhat follows a price, by period: '/ month', '/ year', 'once'.
periods.monthstring≤ 16 chars
periods.yearstring≤ 16 chars
periods.oncestring≤ 16 chars
billingoptionalobjectA monthly / yearly switch above the plans. Left out, prices show as written.
billing.labelstring1–32 charsNames the switch for screen readers: 'Billing period'.
billing.monthstring1–16 chars'Monthly'
billing.yearstring1–16 chars'Yearly'
billing.savingoptionalstring≤ 24 charsNext to the yearly option: '2 months free'.
localeoptionalstringA BCP 47 locale for the prices ('fr-FR'); the page's language when left out.
noteoptionalstring≤ 140 charsUnder the plans: taxes, trials, discounts.

Props

PropNotes
contentPricingPlansContent; the example when left out
idthe section's id, for anchor links; "pricing" by default
headingLevel1, 2 or 3: the heading's tag; 2 by default
classNameon the root element, for spacing

Accessibility

  • Plans are a list; each plan's name is a heading one level below the block's.
  • The highlighted plan is marked by its badge's text, not only by its colour.
  • The billing switch is a toggle group named by billing.label; the chosen option is pressed (aria-pressed).
  • Screen readers read each price once, formatted, not its rolling digits.