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
| Prop | Type | Default | Description |
|---|---|---|---|
tiers | PricingTier[] | required | Array of pricing tiers. |
headingLevel | 2 | 3 | 3 | Heading 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
| Prop | Type | Default | Description |
|---|---|---|---|
name | string | required | Tier name, e.g. "Business". |
price | string | required | Price string, e.g. "Free" or "Custom". |
features | string[] | required | Bullet list of included features. |
cta | { label: string; href: string } | required | Call-to-action button. |
tagline | string | undefined | Short tagline rendered below the price. |
featured | boolean | false | When true, highlights the tier and adds a “Most popular” badge. |
Behaviour
- The featured tier’s CTA gets an
aria-labelof"{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.