Pricing Components
Pricing.tsx exports eight independent layouts — PricingCards, PricingScale, PricingDotPattern, PricingBuilder, PricingTable, PricingSlider, PricingTypographic and PricingPlans — that share one color engine. Pick the layout that matches your funnel, then use the theme control above the gallery to see the accent cascade through badges, gradients, glows and buttons.Tiered cards
One card per plan, with a billing-cycle tab strip above them.
- Pass
data - as
{ tabs: [{ plans: [...] }] }— the tabs become the billing-cycle strip. popular{true}- on a plan scales that card up and accents it.
Dot matrix cards
Minimalist cards with top dot-matrix pattern, corner frame accents, and featured glow state.
- Render
PricingDotPattern - with
plans— each abadgeTag,price,period,descriptionandfeaturesunder afeaturesTitle.featuredgives that card the glow.
Scale cards
Modern dual-card layout with launch & scale plans, monthly/annual toggle, and bottom strategy call CTA.
- Render
PricingScale - with
plansas{ monthly, annually }— two plans each. A plan'spopularBadgeTextandfeaturesTitlelabel the highlighted card and its list;footerTitle,footerSubtitleandfooterCtaText/footerCtaHrefwrite the strategy-call strip.
Installation
New project? Follow the installation guide to set up Tailwind CSS, shadcn, the cn helper and lucide-react, register the @algorize-ui registry once, then copy your styles from the Themes page.
Install Pricing
components/ is written into your project. Copy any snippet from a Usage tab above and it runs.
Install dependencies
Step 1 installs this for you. Run it yourself only if you are adding Pricing to an existing project by hand. The cn helper and lucide-react are not listed — the installation guide covers them once for every component.
toggle-group is a component, not a package — the shadcn CLI installs it as source files.
Examples
Elegant cards
- Set
variant"elegant" - for a lighter type scale and a top-border accent that lifts on hover.
counting{false}- disables animated price counting for a static numeric display.
Minimal cards
- Set
variant"minimal" - to drop the card borders — the popular plan is marked by a single ring instead.
Bordered cards
- Set
variant"bordered" - for the neo-brutalist take: square corners, thick borders, offset shadows.
Quote builder
color- is
PricingBuilder's primary theme prop — it carries its own module data and recalculates the animated total itself.
Comparison table
data- on
PricingTablelays plans out as columns and features as grouped rows. Avaluesentry may betrue,falseor a string.
Usage slider
data- on
PricingSliderdefines the volume tiers — dragging updates the tier, price and included limits together.
Typographic menu
data- on
PricingTypographictakes every plan in one array; tag each withbillingCycleto drive the monthly/yearly switch — aToggleGroupin the block'scolor.
Interactive service checklist
PricingPlans- calculates estimated cost based on selected services (Design, Development, Fast Track).
Props Reference: PricingCards
| Prop | Type | Default | Description |
|---|---|---|---|
data | PricingData | Required | The core data object containing an array of tabs (e.g.
Monthly vs Annually), which in turn contain an array of
plans. |
variant | | "default" | Applies structural card layouts. dot-pattern renders dot-matrix header cards, scale renders dual-panel scaling cards, bordered uses neo-brutalist edges, and elegant uses soft border-top accents. |
title | string | undefined | Optional section header title text displayed above the pricing cards. |
subtitle | string | undefined | Optional subheader text displayed underneath the main title. |
badgeText | string | undefined | Optional top badge tag text rendered above the section title. |
color | "indigo" | "rose" | "emerald" | "zinc" | string | "indigo" | Applies global color themes to the "Most Popular" badges, checkmark
icons, primary buttons, and gradients. Any custom hex string is
resolved through CSS variables. |
counting | boolean | true | Toggles animated number count-up for price values across all plans.
When set to true, prices count up smoothly on mount or tab change; when false, prices display statically without animation. |
Props Reference: Other Layouts
| Component | Prop | Type | Default | Description |
|---|---|---|---|---|
PricingBuilder | counting | boolean | true | Controls animated count-up for the calculated total price. |
PricingBuilder | color | PricingColor | "indigo" | Accent for the module toggles, animated total and call to action. |
PricingTable | data | PricingTableData | Required | plans become the columns (one may set
featured) and sections group the feature
rows. |
PricingTable | counting | boolean | true | Toggles animated count-up for plan prices in column headers. |
PricingTable | color | PricingColor | "indigo" | Accent for the featured column, checkmarks and buttons. |
PricingSlider | counting | boolean | true | Controls animated count-up when dragging the usage volume slider. |
PricingSlider | color | PricingColor | "indigo" | Accent for the range track, thumb and computed price. |
PricingTypographic | packages | PricingTypographicPlan[] | Required | A flat list of plans split by billingCycle. |
PricingTypographic | counting | boolean | true | Toggles animated count-up for active plan prices. |
PricingTypographic | color | PricingColor | "indigo" | Accent for the active row, price and underline treatment. |
PricingPlans | services | PricingServiceOption[] | List of selectable service items with pricing, icons and feature bullet points. | |
PricingPlans | color | PricingColor | Accent theme color for selected checkboxes, total calculation and CTA button. | |
PricingScale | plans | { monthly: ScalePlanItem[]; annually: ScalePlanItem[] } | Object containing monthly and annually arrays of pricing plan cards with titles, prices, icons and features. | |
PricingScale | badgeText / title / subtitle | string | Custom text props for top pill badge, section heading, and description paragraph. | |
PricingScale | footerTitle / footerSubtitle / footerCtaText / footerCtaHref | string | Configuration props for the bottom strategy call CTA banner. | |
PricingScale | color | PricingColor | Applies accent color to popular plan ring/badge, checkmarks, active toggle, and CTA buttons. |