Skip to content
Calm motion: animations on this site only fade, with no movement

Pricing table ​

Plans side by side, with a monthly or yearly switch

Shows the plans of a product next to each other, so a person can compare the prices and features and pick one. For a list of features in rows across plans, use the table.

Basic
Save 17%
  • Hobby

    Try it with one show

    Free

    • 1 show
    • 2 hours of audio a month
    • Basic stats
  • Team

    For a network of shows

    $30/ month

    • Unlimited shows
    • 5 seats
    • Roles and approvals
    • Priority help
  • plans is a list of { id, name, description, price, features, featured, cta }. price has a monthly and a yearly amount. A price of 0 shows "Free".
  • The switch at the top changes v-model:period between monthly and yearly. Next to it, "Save 17%" shows the best saving of a year over twelve months, from all the plans.
  • featured puts a border in the accent color and a badge on one plan, and gives it a filled button. The other plans get an outline button.
  • The button emits select with the plan and the period. cta sets the text of the button on one plan, for example "Talk to us".
  • The prices use Intl.NumberFormat: currency is an ISO 4217 code (default USD), and locale sets the format (default en).
  • The plans wrap to more rows on a small screen. Each plan is an item in a list, so screen readers say how many plans there are.
  • Change the words with labels or a label pack: period, monthly, yearly, perMonth, perYear, free, featured, choose, and save (a function of the percent).

Usage ​

ts
import { BlessPricingTable, type BlessPricingPeriod, type BlessPricingPlan } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
plans*BlessPricingPlan[]—
currencystring"USD"an ISO 4217 code, for example `USD` or `IDR`
localestring"en"
labelsPartial<{ period: string; monthly: string; yearly: string; perMonth: string; perYear: string; free: string; featured: string; choose: string; save: (pct: number) => string; }>—
periodBlessPricingPeriod"monthly"

Events

NamePayloadDescription
select[plan: BlessPricingPlan, period: BlessPricingPeriod]
update:period[value: BlessPricingPeriod]

Released under the MIT License. Character names and artwork belong to their owners.