PricingTable
Todos los planes lado a lado con lo que incluye cada uno, fila por fila: una tabla en pantallas anchas y, en celulares, un plan a la vez, cada uno una tarjeta con su lista.
import { PricingTable, PricingTableSkeleton } from '@sypnia/ui/react'
Planes comparados
HobbyFree To try it. | ProRecomendado29 US$per month For a product in production. | Team99 US$per 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 | No incluido | Incluido | Incluido |
| Single sign-on | No incluido | No incluido | Incluido |
Hobby
Free
To try it.
- Projects
- 1
- Events a month
- 50,000
- History
- 7 days
- Fixes by the agent
- No incluido
- Single sign-on
- No incluido
Pro
Recomendado29 US$per month
For a product in production.
- Projects
- 10
- Events a month
- 2 million
- History
- 90 days
- Fixes by the agent
- Incluido
- Single sign-on
- No incluido
Team
99 US$per month
For several teams.
- Projects
- Unlimited
- Events a month
- 10 million
- History
- 1 year
- Fixes by the agent
- Incluido
- Single sign-on
- Incluido
Código
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 } },
]} />
);
} En Astro
HobbyFree To try it. | ProRecomendado29 US$per month For a product in production. | |
|---|---|---|
| Projects | 1 | 10 |
| Fixes by the agent | No incluido | Incluido |
Hobby
Free
To try it.
- Projects
- 1
- Fixes by the agent
- No incluido
Pro
Recomendado29 US$per month
For a product in production.
- Projects
- 10
- Fixes by the agent
- Incluido
Código
---
// 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
Código
import { PricingTableSkeleton } from '@sypnia/ui/react';
// The plans while their prices and limits load.
export default function Skeleton() {
return <PricingTableSkeleton plans={3} rows={4} />;
} Cuándo usarlo
Úsalo cuando
- La sección de precios de una landing.
No lo uses cuando
- Dos o tres planes con listas cortas: PlanCards en una CardGrid se leen más rápido.
Para todos
- Es una tabla de verdad con título, los planes como encabezados de columna y los límites como encabezados de fila.
- Los chulos y las rayas se dicen como «Incluido» y «No incluido».
Props
| PricingTable | Tipo | Por defecto |
|---|---|---|
captionobligatorio | string | |
plansobligatorio | PricingPlan[] | |
rowsobligatorio | CompareRow[] |
| PricingTableSkeleton | Tipo | Por defecto |
|---|---|---|
plans | number | 3 |
rows | number | 5 |