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*stringPlan name
price*string | numberPlan price
periodstring"/mo"Billing period label
descriptionstringPlan description
features{ text: string; included: boolean }[]Feature list
ctastringCTA button text
onCtaClick() => voidCTA click handler
isPopularbooleanfalseHighlight as popular plan

PricingTable Props

PropTypeDefaultDescription
children*ReactNodePricingCard elements
classNamestringAdditional CSS classes

PricingToggle Props

PropTypeDefaultDescription
isYearly*booleanWhether yearly is selected
onChange*(isYearly: boolean) => voidToggle callback
savingsLabelstringSavings badge text
classNamestringAdditional CSS classes

FeatureList Props

PropTypeDefaultDescription
features*FeatureListItem[]Array of features with name and included boolean
classNamestringAdditional CSS classes

PricingComparisonTable Props

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