Skip to content
✨ Publier v1 is live — a polished docs platform built for the open web.
On this page

PricingTable

Pricing tiers list with price, tagline, feature bullets, CTA, and a featured tier highlight.

The PricingTable component from @publier/shell renders a row of pricing tiers. One tier can be marked featured to get a visual highlight and a “Most popular” badge.

Usage

The plans below are an example site’s, not Publier’s.

import { PricingTable } from '@publier/shell/components';
<PricingTable
tiers={[
{
name: 'Starter',
price: 'Free',
tagline: 'For personal projects.',
features: ['Unlimited pages', 'All themes', 'Community support'],
cta: { label: 'Get started', href: '/docs/getting-started' },
},
{
name: 'Business',
price: 'Your price',
tagline: 'For small teams.',
features: ['Everything in Starter', 'Custom domain', 'Email support'],
cta: { label: 'Choose Business', href: '/pricing/business' },
featured: true,
},
{
name: 'Enterprise',
price: 'Custom',
tagline: 'For large organizations.',
features: ['Everything in Business', 'SSO', 'SLA'],
cta: { label: 'Contact sales', href: '/contact' },
},
]}
/>

Props

PricingTable

PropTypeDefaultDescription
tiersPricingTier[]requiredArray of pricing tiers.
headingLevel2 | 33Heading level of each tier name. Use 2 when no heading sits between the page’s <h1> and the table, so the outline does not skip a level. PricingSection picks it for you: 2 without a title, 3 with one.

PricingTier

PropTypeDefaultDescription
namestringrequiredTier name, e.g. "Business".
pricestringrequiredPrice string, e.g. "Free" or "Custom".
featuresstring[]requiredBullet list of included features.
cta{ label: string; href: string }requiredCall-to-action button.
taglinestringundefinedShort tagline rendered below the price.
featuredbooleanfalseWhen true, highlights the tier and adds a “Most popular” badge.

Behaviour

  • The featured tier’s CTA gets an aria-label of "{label} — {name} (recommended)"; other tiers use just the label.
  • One or two tiers are centred in a narrower grid; three or more fill up to three columns.
  • Feature bullets render with a checkmark glyph.
  • All CTAs are plain <a> anchors — no JavaScript.