PricingTable
Every plan side by side with what each includes, row by row: a table on wide screens, and on phones one plan at a time, each a card with its own list.
import { PricingTable, PricingTableSkeleton } from '@sypnia/ui/react'
Plans compared
HobbyFree To try it. | ProRecommended$29per month For a product in production. | Team$99per month For several teams. | |
|---|---|---|---|
| Projects | 1 | 10 | Unlimited |
| Events a monthErrors, logs and page views | 50,000 | 2 million | 10 million |
| History | 7 days | 90 days | 1 year |
| Fixes by the agent | Not included | Included | Included |
| Single sign-on | Not included | Not included | Included |
Hobby
Free
To try it.
- Projects
- 1
- Events a month
- 50,000
- History
- 7 days
- Fixes by the agent
- Not included
- Single sign-on
- Not included
Pro
Recommended$29per month
For a product in production.
- Projects
- 10
- Events a month
- 2 million
- History
- 90 days
- Fixes by the agent
- Included
- Single sign-on
- Not included
Team
$99per month
For several teams.
- Projects
- Unlimited
- Events a month
- 10 million
- History
- 1 year
- Fixes by the agent
- Included
- Single sign-on
- Included
Code
import { Button, PricingTable } from '@sypnia/ui/react';
// Every plan side by side; on phones one plan at a time, each with its own list.
export default function Plans() {
return (
<PricingTable caption="Sypnia plans compared" plans={[
{ id: 'free', name: 'Hobby', price: 0, free: 'Free', blurb: 'To try it.', action: <Button size="sm">Start free</Button> },
{ id: 'pro', name: 'Pro', price: 29, currency: 'USD', period: 'per month', lit: true, blurb: 'For a product in production.', action: <Button size="sm" variant="primary">Start with Pro</Button> },
{ id: 'team', name: 'Team', price: 99, currency: 'USD', period: 'per month', blurb: 'For several teams.', action: <Button size="sm">Start with Team</Button> },
]} rows={[
{ id: 'projects', label: 'Projects', values: { free: '1', pro: '10', team: 'Unlimited' } },
{ id: 'events', label: 'Events a month', hint: 'Errors, logs and page views', values: { free: '50,000', pro: '2 million', team: '10 million' } },
{ id: 'history', label: 'History', values: { free: '7 days', pro: '90 days', team: '1 year' } },
{ id: 'fixes', label: 'Fixes by the agent', values: { free: false, pro: true, team: true } },
{ id: 'sso', label: 'Single sign-on', values: { free: false, pro: false, team: true } },
]} />
);
} In Astro
HobbyFree To try it. | ProRecommended$29per month For a product in production. | |
|---|---|---|
| Projects | 1 | 10 |
| Fixes by the agent | Not included | Included |
Hobby
Free
To try it.
- Projects
- 1
- Fixes by the agent
- Not included
Pro
Recommended$29per month
For a product in production.
- Projects
- 10
- Fixes by the agent
- Included
Code
---
// The Astro twin, for landing pages: each plan's button is `action: { label, href }`.
import PricingTable from '@sypnia/ui/astro/PricingTable.astro';
---
<PricingTable caption="Plans compared" plans={[
{ id: 'free', name: 'Hobby', price: 0, free: 'Free', blurb: 'To try it.', action: { label: 'Start free', href: '#free' } },
{ id: 'pro', name: 'Pro', price: 29, currency: 'USD', period: 'per month', lit: true, blurb: 'For a product in production.', action: { label: 'Start with Pro', href: '#pro' } },
]} rows={[
{ id: 'projects', label: 'Projects', values: { free: '1', pro: '10' } },
{ id: 'fixes', label: 'Fixes by the agent', values: { free: false, pro: true } },
]} /> Skeleton
Code
import { PricingTableSkeleton } from '@sypnia/ui/react';
// The plans while their prices and limits load.
export default function Skeleton() {
return <PricingTableSkeleton plans={3} rows={4} />;
} When to use it
Use it when
- The pricing section of a landing page.
Do not use it when
- Two or three plans with short lists: PlanCards in a CardGrid read faster.
For everyone
- It is a real table with a caption, plans as column headers and limits as row headers.
- Checks and dashes are said as «Included» and «Not included».
Props
| PricingTable | Type | Default |
|---|---|---|
captionrequired | string | |
plansrequired | PricingPlan[] | |
rowsrequired | CompareRow[] |
| PricingTableSkeleton | Type | Default |
|---|---|---|
plans | number | 3 |
rows | number | 5 |