Composite

Pricing

Pricing tiers with feature checklists, a highlighted tier and a billing toggle.

The demos below render their headline as h2 and tier names as h3, because the page already has an h1. A yearly price is shown as an annual total; Pricing does not divide it. Numeric prices are formatted in the page language with Intl.NumberFormat; string prices render verbatim.

Single tier

Pricing

Plans for every team

Starter

For individuals getting started.

$9/month

  • Included: 1 project
  • Included: 5 GB storage
  • Not included: Priority support
single
---
import Pricing from '@alfadormx/blocks/composite/Pricing.astro';
import type { PricingTier } from '@alfadormx/blocks/types/pricing';

const starter: PricingTier = {
  name: 'Starter',
  description: 'For individuals getting started.',
  price: { monthly: 9 },
  features: ['1 project', '5 GB storage', { label: 'Priority support', included: false }],
  action: { label: 'Start free trial', href: '#' },
};

const headline = { tagline: 'Pricing', title: 'Plans for every team' };
---

<Pricing headline={headline} tiers={[starter]} />

Three tiers

highlighted emphasises one tier with a primary border, a shadow and a solid action, and badge adds a pill on its top edge. When tiers stack on narrow widths, the highlighted tier moves first.

Pricing

Plans for every team

Starter

For individuals getting started.

$9/month

  • Included: 1 project
  • Included: 5 GB storage
  • Not included: Priority support
Most popular

Pro

For growing teams.

$29/month

  • Included: 10 projects
  • Included: 50 GB storage
  • Included: Priority support

Enterprise

For organisations with custom needs.

Custom

  • Included: Unlimited projects
  • Included: Unlimited storage
  • Included: Dedicated support
three-tiers
---
import Pricing from '@alfadormx/blocks/composite/Pricing.astro';
import type { PricingTier } from '@alfadormx/blocks/types/pricing';

const starter: PricingTier = {
  name: 'Starter',
  description: 'For individuals getting started.',
  price: { monthly: 9 },
  features: ['1 project', '5 GB storage', { label: 'Priority support', included: false }],
  action: { label: 'Start free trial', href: '#' },
};

const pro: PricingTier = {
  name: 'Pro',
  description: 'For growing teams.',
  price: { monthly: 29 },
  features: ['10 projects', '50 GB storage', 'Priority support'],
  action: { label: 'Start free trial', href: '#' },
  highlighted: true,
  badge: 'Most popular',
};

const enterprise: PricingTier = {
  name: 'Enterprise',
  description: 'For organisations with custom needs.',
  price: { monthly: 'Custom' },
  period: { monthly: '' },
  features: ['Unlimited projects', 'Unlimited storage', 'Dedicated support'],
  action: { label: 'Contact sales', href: '#' },
};

const headline = { tagline: 'Pricing', title: 'Plans for every team' };
---

<Pricing headline={headline} tiers={[starter, pro, enterprise]} />

Four tiers

Four tiers sit in four columns from the @5xl container width, and two by two below it.

Pricing

Plans for every team

Starter

For individuals getting started.

$9/month

  • Included: 1 project
  • Included: 5 GB storage
  • Not included: Priority support
Most popular

Pro

For growing teams.

$29/month

  • Included: 10 projects
  • Included: 50 GB storage
  • Included: Priority support

Team

For larger teams.

$79/month

  • Included: Unlimited projects
  • Included: 500 GB storage
  • Included: Priority support

Enterprise

For organisations with custom needs.

Custom

  • Included: Unlimited projects
  • Included: Unlimited storage
  • Included: Dedicated support
four-tiers
---
import Pricing from '@alfadormx/blocks/composite/Pricing.astro';
import type { PricingTier } from '@alfadormx/blocks/types/pricing';

const starter: PricingTier = {
  name: 'Starter',
  description: 'For individuals getting started.',
  price: { monthly: 9 },
  features: ['1 project', '5 GB storage', { label: 'Priority support', included: false }],
  action: { label: 'Start free trial', href: '#' },
};

const pro: PricingTier = {
  name: 'Pro',
  description: 'For growing teams.',
  price: { monthly: 29 },
  features: ['10 projects', '50 GB storage', 'Priority support'],
  action: { label: 'Start free trial', href: '#' },
  highlighted: true,
  badge: 'Most popular',
};

const team: PricingTier = {
  name: 'Team',
  description: 'For larger teams.',
  price: { monthly: 79 },
  features: ['Unlimited projects', '500 GB storage', 'Priority support'],
  action: { label: 'Start free trial', href: '#' },
};

const enterprise: PricingTier = {
  name: 'Enterprise',
  description: 'For organisations with custom needs.',
  price: { monthly: 'Custom' },
  period: { monthly: '' },
  features: ['Unlimited projects', 'Unlimited storage', 'Dedicated support'],
  action: { label: 'Contact sales', href: '#' },
};

const headline = { tagline: 'Pricing', title: 'Plans for every team' };
---

<Pricing headline={headline} tiers={[starter, pro, team, enterprise]} />

Billing toggle

When any tier has a yearly price, a Monthly/Yearly toggle renders above the tiers. It works without JavaScript; with it, the change is announced to screen readers.

Pricing

Plans for every team

Starter

For individuals getting started.

$9/month$90/year

  • Included: 1 project
  • Included: 5 GB storage
  • Not included: Priority support
Most popular

Pro

For growing teams.

$29/month$290/year

  • Included: 10 projects
  • Included: 50 GB storage
  • Included: Priority support

Team

For larger teams.

$79/month$790/year

  • Included: Unlimited projects
  • Included: 500 GB storage
  • Included: Priority support
billing-toggle
---
import Pricing from '@alfadormx/blocks/composite/Pricing.astro';
import type { PricingTier } from '@alfadormx/blocks/types/pricing';

const starter: PricingTier = {
  name: 'Starter',
  description: 'For individuals getting started.',
  price: { monthly: 9 },
  features: ['1 project', '5 GB storage', { label: 'Priority support', included: false }],
  action: { label: 'Start free trial', href: '#' },
};

const pro: PricingTier = {
  name: 'Pro',
  description: 'For growing teams.',
  price: { monthly: 29 },
  features: ['10 projects', '50 GB storage', 'Priority support'],
  action: { label: 'Start free trial', href: '#' },
  highlighted: true,
  badge: 'Most popular',
};

const team: PricingTier = {
  name: 'Team',
  description: 'For larger teams.',
  price: { monthly: 79 },
  features: ['Unlimited projects', '500 GB storage', 'Priority support'],
  action: { label: 'Start free trial', href: '#' },
};

const starterYearly: PricingTier = { ...starter, price: { monthly: 9, yearly: 90 } };
const proYearly: PricingTier = { ...pro, price: { monthly: 29, yearly: 290 } };
const teamYearly: PricingTier = { ...team, price: { monthly: 79, yearly: 790 } };

const headline = { tagline: 'Pricing', title: 'Plans for every team' };
---

<Pricing headline={headline} tiers={[starterYearly, proYearly, teamYearly]} />

Mixed tiers

Tiers without a yearly price keep their price in both billing states.

Pricing

Plans for every team

Free

For trying things out.

$0/month

  • Included: 1 project
  • Included: 1 GB storage
  • Not included: Priority support
Most popular

Pro

For growing teams.

$29/month$290/year

  • Included: 10 projects
  • Included: 50 GB storage
  • Included: Priority support

Enterprise

For organisations with custom needs.

Custom

  • Included: Unlimited projects
  • Included: Unlimited storage
  • Included: Dedicated support
mixed-tiers
---
import Pricing from '@alfadormx/blocks/composite/Pricing.astro';
import type { PricingTier } from '@alfadormx/blocks/types/pricing';

const free: PricingTier = {
  name: 'Free',
  description: 'For trying things out.',
  price: { monthly: 0 },
  features: ['1 project', '1 GB storage', { label: 'Priority support', included: false }],
  action: { label: 'Sign up', href: '#' },
};

const pro: PricingTier = {
  name: 'Pro',
  description: 'For growing teams.',
  price: { monthly: 29 },
  features: ['10 projects', '50 GB storage', 'Priority support'],
  action: { label: 'Start free trial', href: '#' },
  highlighted: true,
  badge: 'Most popular',
};

const enterprise: PricingTier = {
  name: 'Enterprise',
  description: 'For organisations with custom needs.',
  price: { monthly: 'Custom' },
  period: { monthly: '' },
  features: ['Unlimited projects', 'Unlimited storage', 'Dedicated support'],
  action: { label: 'Contact sales', href: '#' },
};

const proYearly: PricingTier = { ...pro, price: { monthly: 29, yearly: 290 } };

const headline = { tagline: 'Pricing', title: 'Plans for every team' };
---

<Pricing headline={headline} tiers={[free, proYearly, enterprise]} />

Localized labels

Toggle options are matched by position, Monthly then Yearly, so pass both when relabelling them.

Precios

Planes para cada equipo

Starter

For individuals getting started.

$9/mes$90/año

  • Incluido: 1 project
  • Incluido: 5 GB storage
  • No incluido: Priority support
Most popular

Pro

For growing teams.

$29/mes$290/año

  • Incluido: 10 projects
  • Incluido: 50 GB storage
  • Incluido: Priority support

Team

For larger teams.

$79/mes$790/año

  • Incluido: Unlimited projects
  • Incluido: 500 GB storage
  • Incluido: Priority support
localized
---
import Pricing from '@alfadormx/blocks/composite/Pricing.astro';
import type { PricingTier } from '@alfadormx/blocks/types/pricing';

const starter: PricingTier = {
  name: 'Starter',
  description: 'For individuals getting started.',
  price: { monthly: 9 },
  features: ['1 project', '5 GB storage', { label: 'Priority support', included: false }],
  action: { label: 'Start free trial', href: '#' },
};

const pro: PricingTier = {
  name: 'Pro',
  description: 'For growing teams.',
  price: { monthly: 29 },
  features: ['10 projects', '50 GB storage', 'Priority support'],
  action: { label: 'Start free trial', href: '#' },
  highlighted: true,
  badge: 'Most popular',
};

const team: PricingTier = {
  name: 'Team',
  description: 'For larger teams.',
  price: { monthly: 79 },
  features: ['Unlimited projects', '500 GB storage', 'Priority support'],
  action: { label: 'Start free trial', href: '#' },
};

const starterYearly: PricingTier = { ...starter, price: { monthly: 9, yearly: 90 } };
const proYearly: PricingTier = { ...pro, price: { monthly: 29, yearly: 290 } };
const teamYearly: PricingTier = { ...team, price: { monthly: 79, yearly: 790 } };
---

<Pricing
  headline={{ tagline: 'Precios', title: 'Planes para cada equipo' }}
  tiers={[starterYearly, proYearly, teamYearly]}
  toggleGroup={{
    label: 'Periodo de facturación',
    options: [{ label: 'Mensual', selected: true }, { label: 'Anual' }],
  }}
  billingAnnouncement={{
    monthly: 'Mostrando precios mensuales',
    yearly: 'Mostrando precios anuales',
  }}
  defaultTierConfig={{
    period: { monthly: '/mes', yearly: '/año' },
    includedLabel: 'Incluido',
    excludedLabel: 'No incluido',
  }}
/>

No toggle

toggleGroup={false} hides the toggle; monthly prices show.

Pricing

Plans for every team

Starter

For individuals getting started.

$9/month

  • Included: 1 project
  • Included: 5 GB storage
  • Not included: Priority support
Most popular

Pro

For growing teams.

$29/month

  • Included: 10 projects
  • Included: 50 GB storage
  • Included: Priority support

Team

For larger teams.

$79/month

  • Included: Unlimited projects
  • Included: 500 GB storage
  • Included: Priority support
no-toggle
---
import Pricing from '@alfadormx/blocks/composite/Pricing.astro';
import type { PricingTier } from '@alfadormx/blocks/types/pricing';

const starter: PricingTier = {
  name: 'Starter',
  description: 'For individuals getting started.',
  price: { monthly: 9 },
  features: ['1 project', '5 GB storage', { label: 'Priority support', included: false }],
  action: { label: 'Start free trial', href: '#' },
};

const pro: PricingTier = {
  name: 'Pro',
  description: 'For growing teams.',
  price: { monthly: 29 },
  features: ['10 projects', '50 GB storage', 'Priority support'],
  action: { label: 'Start free trial', href: '#' },
  highlighted: true,
  badge: 'Most popular',
};

const team: PricingTier = {
  name: 'Team',
  description: 'For larger teams.',
  price: { monthly: 79 },
  features: ['Unlimited projects', '500 GB storage', 'Priority support'],
  action: { label: 'Start free trial', href: '#' },
};

const starterYearly: PricingTier = { ...starter, price: { monthly: 9, yearly: 90 } };
const proYearly: PricingTier = { ...pro, price: { monthly: 29, yearly: 290 } };
const teamYearly: PricingTier = { ...team, price: { monthly: 79, yearly: 790 } };

const headline = { tagline: 'Pricing', title: 'Plans for every team' };
---

<Pricing headline={headline} tiers={[starterYearly, proYearly, teamYearly]} toggleGroup={false} />

API Reference

PropTypeDefaultDescription
containerContainerProps—Configuration for the outer Container
headlineHeadlineProps—Headline above the tiers; not rendered when omitted (default: { htmlTag: 'h2', align: 'center' })
tiersPricingTier[]—One to four tiers
toggleGroupPricingToggleGroup | false—Billing switch; renders when any tier has a yearly price. `false` hides it (default: { label: 'Billing period' })
billingAnnouncement{ monthly: string; yearly: string }—Screen-reader text announced after the billing changes (default: { monthly: 'Showing monthly prices', yearly: 'Showing yearly prices' })
defaultTierConfigLayerConfig<Omit<PricingTier, 'features' | 'highlighted'>>—Layer merged into every tier
highlightedTierConfigLayerConfig<Omit<PricingTier, 'features' | 'highlighted'>>—Layer merged into the highlighted tier, over `defaultTierConfig`
gap'none' | 'tight' | 'normal' | 'loose''normal'Space between tiers (default: 'normal')
tiersClassstring—Classes on the tiers grid
toggleGroupClassstring—Classes on the billing toggle wrapper