Examples
Plan comparison
A responsive grid keeps the price, action, and feature list in one scannable comparison.
Choose the right pace
Compare the essentials, then choose the plan that fits your next stage.
Starter
A clear first step for small teams.
- 1 workspace
- Core project views
- Community support
Growth
More room for a team that is moving quickly.
- Unlimited projects
- Advanced sharing
- Priority support
Scale
Controls and support for complex organizations.
- Unlimited workspaces
- SAML single sign-on
- Dedicated support
Pricing plan comparison
import { Button } from "@phuctech/ui/components/button";
import { Pricing } from "@phuctech/ui/components/pricing";
const plans = [
{
id: "starter",
name: "Starter",
description: "A clear first step for small teams.",
price: "$0",
priceSuffix: "/ month",
features: [
{ label: "1 workspace" },
{ label: "Core project views" },
{ label: "Community support" },
],
action: <Button variant="outline">Start free</Button>,
},
{
id: "growth",
name: "Growth",
description: "More room for a team that is moving quickly.",
price: "$24",
priceSuffix: "/ month",
features: [
{ label: "Unlimited projects" },
{ label: "Advanced sharing" },
{ label: "Priority support" },
],
action: <Button>Choose Growth</Button>,
},
{
id: "scale",
name: "Scale",
description: "Controls and support for complex organizations.",
price: "$80",
priceSuffix: "/ month",
features: [
{ label: "Unlimited workspaces" },
{ label: "SAML single sign-on" },
{ label: "Dedicated support" },
],
action: <Button variant="outline">Talk to sales</Button>,
},
] as const;
export function Example() {
return (
<Pricing
aria-label="Plans"
heading="Choose the right pace"
description="Compare the essentials, then choose the plan that fits your next stage."
plans={plans}
/>
);
}
Featured plan
Use featured to give one option more visual weight without changing its content or semantics.
Free
For trying the workspace with no commitment.
- 3 active projects
- Basic collaboration
Pro
For teams building and shipping every week.
Everything in Free, plus:
- Unlimited projects
- Review workflows
- Advanced reporting
Enterprise
For organizations with security and scale requirements.
Tailored to your team and usage.
- SAML single sign-on
- Audit exports
- Dedicated success manager
Pricing grid with a featured plan
import { Badge } from "@phuctech/ui/components/badge";
import { Button } from "@phuctech/ui/components/button";
import { Pricing } from "@phuctech/ui/components/pricing";
const plans = [
{
id: "free",
name: "Free",
description: "For trying the workspace with no commitment.",
price: "$0",
priceSuffix: "/ month",
features: [{ label: "3 active projects" }, { label: "Basic collaboration" }],
action: <Button variant="outline">Get started</Button>,
note: "No credit card required.",
},
{
id: "pro",
name: "Pro",
badge: <Badge variant="info" size="sm">Most popular</Badge>,
description: "For teams building and shipping every week.",
price: "$32",
priceSuffix: "/ month",
featured: true,
featureHeading: "Everything in Free, plus:",
features: [
{ label: "Unlimited projects" },
{ label: "Review workflows" },
{ label: "Advanced reporting" },
],
action: <Button>Choose Pro</Button>,
},
{
id: "enterprise",
name: "Enterprise",
description: "For organizations with security and scale requirements.",
price: "Custom",
billing: "Tailored to your team and usage.",
features: [
{ label: "SAML single sign-on" },
{ label: "Audit exports" },
{ label: "Dedicated success manager" },
],
action: <Button variant="outline">Contact sales</Button>,
},
] as const;
export function Example() {
return <Pricing plans={plans} />;
}
Slots and supporting context
Icons, badges, feature headings, notes, and actions stay owned by the consuming feature.
Flexible by design
Plans that meet you where you are
Use slots for meaningful details while the grid keeps every comparison aligned.
Solo
A focused toolkit for independent work.
Included in Solo:
- Personal workspaceOne private space for your work.
- Unlimited drafts
Team
Shared workspaces for a small, aligned team.
Everything in Solo, plus:
- Shared workspaces
- Comments and mentions
- Team activity history
Secure
Governance and visibility for larger organizations.
We will scope the right rollout together.
Everything in Team, plus:
- SAML single sign-on
- Audit exports
- Security review
Pricing cards with optional slots
import { ShieldCheckIcon, SparklesIcon, UsersIcon } from "@phuctech/ui/icons";
import { Button } from "@phuctech/ui/components/button";
import { Pricing } from "@phuctech/ui/components/pricing";
const plans = [
{
id: "solo",
name: "Solo",
icon: <SparklesIcon aria-hidden="true" className="size-8 text-primary" />,
description: "A focused toolkit for independent work.",
price: "$12",
priceSuffix: "/ month",
featureHeading: "Included in Solo:",
features: [
{ label: "Personal workspace", description: "One private space for your work." },
{ label: "Unlimited drafts" },
],
action: <Button variant="outline">Try Solo</Button>,
note: "Cancel whenever you like.",
},
{
id: "team",
name: "Team",
icon: <UsersIcon aria-hidden="true" className="size-8 text-primary" />,
description: "Shared workspaces for a small, aligned team.",
price: "$28",
priceSuffix: "/ member / month",
featured: true,
featureHeading: "Everything in Solo, plus:",
features: [
{ label: "Shared workspaces" },
{ label: "Comments and mentions" },
{ label: "Team activity history" },
],
action: <Button>Start a team</Button>,
},
{
id: "secure",
name: "Secure",
icon: <ShieldCheckIcon aria-hidden="true" className="size-8 text-primary" />,
description: "Governance and visibility for larger organizations.",
price: "Custom",
billing: "We will scope the right rollout together.",
featureHeading: "Everything in Team, plus:",
features: [
{ label: "SAML single sign-on" },
{ label: "Audit exports" },
{ label: "Security review" },
],
action: <Button variant="outline">Plan a rollout</Button>,
},
] as const;
export function Example() {
return (
<Pricing
eyebrow="Flexible by design"
heading="Plans that meet you where you are"
description="Use slots for meaningful details while the grid keeps every comparison aligned."
plans={plans}
/>
);
}
Long feature lists
Cards grow with their content so important features remain readable instead of being clipped.
Team
A balanced set of tools for day-to-day work.
- Unlimited projects
- Custom views
- Comments and mentions
Business
More control for larger, faster-moving teams.
Everything in Team, plus:
- Unlimited projects
- Custom views
- Comments and mentions
- File attachments
- Automations
- Workspace history
Enterprise
Security and support tailored to your rollout.
We will help scope a plan for your organization.
- Unlimited projects
- Custom views
- Comments and mentions
- File attachments
- Automations
- Workspace history
- Dedicated success manager
- Custom data retention
Pricing cards with long feature lists
import { Button } from "@phuctech/ui/components/button";
import { Pricing } from "@phuctech/ui/components/pricing";
const sharedFeatures = [
{ label: "Unlimited projects" },
{ label: "Custom views" },
{ label: "Comments and mentions" },
{ label: "File attachments" },
{ label: "Automations" },
{ label: "Workspace history" },
];
const plans = [
{
id: "team",
name: "Team",
description: "A balanced set of tools for day-to-day work.",
price: "$28",
priceSuffix: "/ member / month",
features: sharedFeatures.slice(0, 3),
action: <Button variant="outline">Choose Team</Button>,
},
{
id: "business",
name: "Business",
description: "More control for larger, faster-moving teams.",
price: "$64",
priceSuffix: "/ member / month",
featured: true,
featureHeading: "Everything in Team, plus:",
features: sharedFeatures,
action: <Button>Choose Business</Button>,
note: "Annual billing includes two months free.",
},
{
id: "enterprise",
name: "Enterprise",
description: "Security and support tailored to your rollout.",
price: "Custom",
billing: "We will help scope a plan for your organization.",
features: [
...sharedFeatures,
{ label: "Dedicated success manager" },
{ label: "Custom data retention" },
],
action: <Button variant="outline">Contact sales</Button>,
},
] as const;
export function Example() {
return <Pricing aria-label="Long pricing comparison" plans={plans} />;
}
When to use
Use Pricing when people need to compare two or more plans before choosing a next step. It works for subscriptions, service tiers, and feature packages. Use Card for one bounded surface, and use a Table when many row-by-row comparisons matter more than plan-level hierarchy.
Usage
import { Button } from "@phuctech/ui/components/button";
import { Pricing } from "@phuctech/ui/components/pricing";
const plans = [
{
id: "starter",
name: "Starter",
description: "A clear first step for small teams.",
price: "$0",
priceSuffix: "/ month",
features: [
{ label: "1 workspace" },
{ label: "Core project views" },
{ label: "Community support" },
],
action: <Button variant="outline">Start free</Button>,
},
{
id: "growth",
name: "Growth",
description: "More room for a team that is moving quickly.",
price: "$24",
priceSuffix: "/ month",
features: [
{ label: "Unlimited projects" },
{ label: "Advanced sharing" },
{ label: "Priority support" },
],
action: <Button>Choose Growth</Button>,
},
{
id: "scale",
name: "Scale",
description: "Controls and support for complex organizations.",
price: "$80",
priceSuffix: "/ month",
features: [
{ label: "Unlimited workspaces" },
{ label: "SAML single sign-on" },
{ label: "Dedicated support" },
],
action: <Button variant="outline">Talk to sales</Button>,
},
] as const;
export function Example() {
return (
<Pricing
aria-label="Plans"
heading="Choose the right pace"
description="Compare the essentials, then choose the plan that fits your next stage."
plans={plans}
/>
);
}
Pricing owns the layout and comparison semantics. Supply an ordered plans array, and provide the action slot from the consuming feature so navigation, loading, and business state stay outside the design component.
Composition
- Give each plan a stable
id, a clearname, a price, and a short audience description. - Use
featuredfor one plan that deserves visual emphasis; keep the readable badge or explanation inbadge. - Use
featureHeadingfor inheritance copy such as “Everything in Growth, plus:”. Keep every capability in text insidefeatures. - Pass a real
Buttonor link asaction. Pricing does not invent navigation or request state. - Keep pricing context in
billingornote; do not hide conditions in a tooltip or color-only treatment.
API
Tokens
Accessibility
- Pricing renders a section, article cards,
h2/h3headings, and a list for features so the comparison has a navigable structure. - Keep the plan name and feature labels visible. Icons are decorative defaults and are marked
aria-hidden. - Supply a real Button or link in
action; ensure its visible label describes the plan or next step. - Long feature lists grow the card naturally. Do not clip them or put required pricing terms in a hover-only surface.
- Test at narrow widths and with keyboard focus; the grid becomes one column so every action remains reachable.
Do and don’t
Keep the price, billing context, CTA, and included capabilities in each plan’s hierarchy.
Use color alone to mark the best plan, hide conditions in a tooltip, or make the entire card an unlabeled click target.