Pricing

@allem-ui/pricing

Pricing tables, cards, toggles, and feature comparison components for SaaS and product pages.

Installation

npm install @allem-ui/pricing

Components

PricingCard

Individual pricing plan card with name, price, features, and CTA button.

Most Popular

Pro

For growing teams

$29/mo
  • Unlimited projects
  • Priority support
  • Custom domains
  • SSO

PricingToggle

Monthly/yearly billing period toggle with optional savings badge.

Save 20%

PricingCard Props

PropTypeDefaultDescription
name*string—Plan name
price*string | number—Plan price
periodstring"/mo"Billing period label
descriptionstring—Plan description
features{ text: string; included: boolean }[]—Feature list
ctastring—CTA button text
onCtaClick() => void—CTA click handler
isPopularbooleanfalseHighlight as popular plan

PricingTable Props

PropTypeDefaultDescription
children*ReactNode—PricingCard elements
classNamestring—Additional CSS classes

PricingToggle Props

PropTypeDefaultDescription
isYearly*boolean—Whether yearly is selected
onChange*(isYearly: boolean) => void—Toggle callback
savingsLabelstring—Savings badge text
classNamestring—Additional CSS classes

FeatureList Props

PropTypeDefaultDescription
features*FeatureListItem[]—Array of features with name and included boolean
classNamestring—Additional CSS classes

PricingComparisonTable Props

PropTypeDefaultDescription
plans*ComparisonPlan[]—Array of plan definitions
features*ComparisonFeatureCategory[]—Feature categories with plan values
classNamestring—Additional CSS classes