| Prices per seat, ex. VAT | Starter | Recommended Team | Business |
|---|---|---|---|
£0 | £24 a month | £79 a month | |
| Usage | |||
| Projects | 3 | Unlimited | Unlimited |
| Seats | 1 | Up to 20 | Unlimited |
| Storage | 5 GB | 100 GB | 1 TB |
| Builds a month | 100 | 3,000 | Unlimited |
| Bandwidth | 100 GB | 1 TB | 1 TB |
| Collaboration | |||
| Comments | |||
| Preview links | |||
| Roles and permissions | – | ||
| Single sign-on | – | – | |
| Audit log | – | – | |
| Support | |||
| Help centre | |||
| Email support | – | ||
| Response time | None | 1 day | 4 hours |
| Uptime SLA | – | – | 99.9% |
Usage
- Projects
- Team: Unlimited
- Business: Unlimited
- Seats
- Team: Up to 20
- Business: Unlimited
- Storage
- Team: 100 GB
- Business: 1 TB
- Builds a month
- Team: 3,000
- Business: Unlimited
- Bandwidth
- Team: 1 TB
- Business: 1 TB
Collaboration
- Comments
- Team:
- Business:
- Preview links
- Team:
- Business:
- Roles and permissions
- Team:
- Business:
- Single sign-on
- Team: –
- Business:
- Audit log
- Team: –
- Business:
Support
- Help centre
- Team:
- Business:
- Email support
- Team:
- Business:
- Response time
- Team: 1 day
- Business: 4 hours
- Uptime SLA
- Team: –
- Business: 99.9%
highlightednotedisabledimport { useState } from "react"
import { ComparisonTable, type ComparisonBilling } from "@/components/ui/comparison-table"
import { plans, groups } from "./plans"
export function Pricing() {
const [billing, setBilling] = useState<ComparisonBilling>("monthly")
const [only, setOnly] = useState(false)
return (
<ComparisonTable
plans={plans.map((p) => ({ ...p, highlighted: p.name === "Team" }))}
groups={groups}
note="Prices per seat, ex. VAT"
billing={billing}
onBillingChange={setBilling}
onlyDifferences={only}
onOnlyDifferencesChange={setOnly}
maxHeight={450}
/>
)
}Usage
import { ComparisonTable } from "@/components/ui/comparison-table"
const perSeat = { monthly: "a month", yearly: "a month, billed yearly" }
const plans = [
{ id: "starter", name: "Starter", price: { monthly: "£0", yearly: "£0" }, cta: { label: "Start free" } },
{ id: "team", name: "Team", price: { monthly: "£24", yearly: "£20" }, per: perSeat, highlighted: true },
{ id: "business", name: "Business", price: { monthly: "£79", yearly: "£66" }, per: perSeat },
]
const groups = [
{
label: "Usage",
features: [
{ label: "Projects", values: { starter: "3", team: "Unlimited", business: "Unlimited" } },
{ label: "Single sign-on", values: { business: true } },
],
},
]
export function Pricing() {
return <ComparisonTable plans={plans} groups={groups} note="Prices per seat, ex. VAT" />
}Examples
| Prices per seat, ex. VAT | Starter | Recommended Team | Business |
|---|---|---|---|
£0 | £24 a month | £79 a month | |
| Usage | |||
| Projects | 3 | Unlimited | Unlimited |
| Seats | 1 | Up to 20 | Unlimited |
| Storage | 5 GB | 100 GB | 1 TB |
| Builds a month | 100 | 3,000 | Unlimited |
| Bandwidth | 100 GB | 1 TB | 1 TB |
| Collaboration | |||
| Comments | |||
| Preview links | |||
| Roles and permissions | – | ||
| Single sign-on | – | – | |
| Audit log | – | – | |
| Support | |||
| Help centre | |||
| Email support | – | ||
| Response time | None | 1 day | 4 hours |
| Uptime SLA | – | – | 99.9% |
Usage
- Projects
- Team: Unlimited
- Business: Unlimited
- Seats
- Team: Up to 20
- Business: Unlimited
- Storage
- Team: 100 GB
- Business: 1 TB
- Builds a month
- Team: 3,000
- Business: Unlimited
- Bandwidth
- Team: 1 TB
- Business: 1 TB
Collaboration
- Comments
- Team:
- Business:
- Preview links
- Team:
- Business:
- Roles and permissions
- Team:
- Business:
- Single sign-on
- Team: –
- Business:
- Audit log
- Team: –
- Business:
Support
- Help centre
- Team:
- Business:
- Email support
- Team:
- Business:
- Response time
- Team: 1 day
- Business: 4 hours
- Uptime SLA
- Team: –
- Business: 99.9%
import { ComparisonTable } from '@/components/ui/comparison-table';
const perSeat = { monthly: 'a month', yearly: 'a month, billed yearly' };
const plans = [
{ id: 'starter', name: 'Starter', price: { monthly: '£0', yearly: '£0' }, cta: { label: 'Start free' } },
{ id: 'team', name: 'Team', price: { monthly: '£24', yearly: '£20' }, per: perSeat, highlighted: true },
{ id: 'business', name: 'Business', price: { monthly: '£79', yearly: '£66' }, per: perSeat },
];
const groups = [
{
label: 'Usage',
features: [
{ label: 'Projects', values: { starter: '3', team: 'Unlimited', business: 'Unlimited' } },
{ label: 'Seats', values: { starter: '1', team: 'Up to 20', business: 'Unlimited' } },
],
},
{
label: 'Collaboration',
features: [
{ label: 'Comments', values: { starter: true, team: true, business: true } },
{ label: 'Single sign-on', values: { business: true } },
],
},
];
export function Example() {
return <ComparisonTable plans={plans} groups={groups} note="Prices per seat, ex. VAT" maxHeight={470} />;
}Billed yearly, differences only
| Prices per seat, ex. VAT | Starter | Recommended Team | Business |
|---|---|---|---|
£0 | £20 a month, billed yearly | £66 a month, billed yearly | |
| Usage | |||
| Projects | 3 | Unlimited | Unlimited |
| Seats | 1 | Up to 20 | Unlimited |
| Storage | 5 GB | 100 GB | 1 TB |
| Builds a month | 100 | 3,000 | Unlimited |
| Bandwidth | 100 GB | 1 TB | 1 TB |
| Collaboration | |||
| Roles and permissions | – | ||
| Single sign-on | – | – | |
| Audit log | – | – | |
| Support | |||
| Email support | – | ||
| Response time | None | 1 day | 4 hours |
| Uptime SLA | – | – | 99.9% |
Usage
- Seats
- Team: Up to 20
- Business: Unlimited
- Storage
- Team: 100 GB
- Business: 1 TB
- Builds a month
- Team: 3,000
- Business: Unlimited
Collaboration
- Single sign-on
- Team: –
- Business:
- Audit log
- Team: –
- Business:
Support
- Response time
- Team: 1 day
- Business: 4 hours
- Uptime SLA
- Team: –
- Business: 99.9%
import { useState } from 'react';
import { ComparisonTable, type ComparisonBilling } from '@/components/ui/comparison-table';
import { plans, groups } from './plans';
export function Example() {
const [billing, setBilling] = useState<ComparisonBilling>('yearly');
const [only, setOnly] = useState(true);
return (
<ComparisonTable
plans={plans}
groups={groups}
billing={billing}
onBillingChange={setBilling}
onlyDifferences={only}
onOnlyDifferencesChange={setOnly}
/>
);
}Notes
Highlight
The highlighted plan is a tinted column, the only filled button and a Recommended badge over its name, on a phone too. Set badge to word it your way, or to label any plan.
Periods
Monthly and Yearly by default. Pass billingPeriods for your own, such as rate types, and key each plan's price by their values. A plain price is the same for every period. billingPeriods={false} drops the toggle for plans with a single price.
Buttons
Each plan has a button, Choose and the plan's name unless cta.label says otherwise. cta: false leaves a plan without one, and the row of buttons goes when no plan has one.
Only differences
The switch hides every feature where all plans agree, drops a section that ends up empty, and says how many it hid. On a phone it compares the two plans on screen.
Sticky plan row
The plan row sticks with its price and button, so a choice is one click away while reading. Set --comparison-table-top to clear a sticky site header, or maxHeight to scroll inside the table.
Phone
Below 768px it compares two plans at a time, picked at the top. Each feature is a label with the two values under it, aligned to the pickers, so nothing scrolls sideways.
API
id, name, price and per as one node or keyed by period value, cta (false for none), highlighted for the one to tint, and badge for its label.label and values by plan id: true, false or text. A missing value is not included.price and per are keyed by. false, or fewer than two, drops the toggle, for plans with one price.details.cancel() refuses it.details.cancel() refuses it.--comparison-table-top.true is a tick. false or nothing is a dash.Agent
Inside an AgentProvider, it appears in agent.snapshot() as toggle-group.
Reads
label"Billing", or billingLabel.
valueThe chosen period's label, such as Monthly.
itemsEvery period's label.
Actions
setValue("Yearly")Switches the billing period.
An agent's change runs through onBillingChange like anyone's. isAgentChange(details) is true for it; details.cancel() refuses it. A period that is not on the toggle is refused with the periods listed. Without a toggle there is no Billing entry. "Only differences" is a switch the agent flips with toggle or setChecked, and the plan buttons are buttons or links it can press.
await agent.act({
steps: [
{ ref: "Billing", action: "setValue", args: ["Yearly"] },
{ ref: "Only differences", action: "setChecked", args: [true] },
],
})Accessibility
- A native table, read by row: features are row headers and plans are column headers.
- Each section is a header row that spans the plans, with
scope="colgroup". - A tick is announced as Included and a dash as Not included, not as symbols.
- The hidden count is a polite live region, so turning the filter on says what it did.
- The badge is part of its plan's column header, and describes the plan's button and phone picker.
- A
cta.labelwithout the plan's name, such as Book, is read with it: Book, Team. - Prices sit in a row under the plan names, so a column header reads as the plan alone.
- On a phone the two pickers are named First plan and Second plan, and each value is prefixed with its plan's name for screen readers.