Skip to content
WingoUI
ComponentsTemplatesDocsPricingAI agentsBlogChangelogContact
Components
Buttons & Actions
ButtonButton GroupCopy ButtonDelete ButtonTheme ToggleToggleToggle Group
Inputs
Avatar UploadCalendarCheckboxColor PickerComboboxCountry SelectCron PickerCurrency InputDate PickerDate Range PickerDate Time PickerDuration PickerEmail InputEmoji PickerFile UploadFilter BuilderInputInput GroupListboxMasked InputMention InputMonth PickerMulti SelectNumber InputOTP InputPassword InputPhone InputRadio GroupRatingSearch InputSegmented ControlSelectSignature PadSliderSwitchTag InputTextareaTime PickerTimezone SelectTree Select
Forms
Address InputBooking WidgetCSV ImportFieldForm WizardInline EditInvoice line itemsRich Text EditorSchema Builder
Navigation
Back To TopBounce SidebarBreadcrumbCommand MenuGlobal SearchGooey NavHook SidebarNav MenuNav TabsPaginationProximity SidebarScroll ProgressSidebarStepsTable Of ContentsTabsTopbarUser MenuWorkspace Switcher
Overlays
Alert DialogContext MenuDialogDrawerDropdown MenuFamily DrawerHover CardPopoverShare DialogSheetShortcuts DialogTooltipTour
Feedback
AlertBannerCookie ConsentEmoji ReactionEmpty StateNotification BellNotification CenterProgressRoute ProgressSetup ChecklistSkeletonSpinnerToast
Data Display
Approval FlowAvatarBadgeCalendar ViewCode BlockComment ThreadContact cardCountdownDescription ListDiff ViewerFile ListFile managerFolderGanttJSON ViewerKbdLog ViewerMarkdownPresenceSchedulerTagTimelineTree View
Tables & Lists
Audit LogData TableDeal PipelineEditable GridKanbanListMembers tablePermissions MatrixTableTask ListVirtual List
Charts & Stats
Animated CounterArea chartBar chartDonut chartFunnel chartGaugeGitHub ActivityHeatmap calendarLeaderboardLine chartRadar chartRadial barSparklineStat CardTrackerTrend badge
Layout
AccordionApp ShellCardCollapsibleDetail LayoutEntity HeaderPage HeaderScroll AreaSeparatorSettings LayoutSplit ViewToolbar
Media
Audio PlayerCarouselCSV ViewerDOCX EditorDOCX ViewerExcel ViewerFile SystemImage compareImage CropperImage GalleryImage LightboxLocation MapPDF ViewerPowerPoint ViewerQR CodeStep PlayerVideo Player
AI Kit
Agent Status CardChat MessageChat ThreadChat WidgetConversation ListFluid OrbGrid RevealMatrix OrbModel PickerPrompt InputReasoning IndicatorRule BuilderSuggestion ChipsTool Call TimelineUsage MeterVoice InputWorkflow Canvas
Text & Effects
Background PatternGravity LettersMarqueeTerminalText AnimateText Rotate
Mobile
Action SheetBottom Tab BarFABHaptic ButtonHero HeaderInstall PromptLarge Title HeaderNotification BannerOnboarding CarouselPicker WheelPull To RefreshSlide To ConfirmSticky CTA BarSwipe DeckSwipeable Tabs
Commerce
Cart drawerCategory pickerCheckout stepsCoupon inputFavorite buttonFilter panelListing cardListing gridOrder trackerPricePrice rangePricing tableProduct galleryQuantity stepperReviewsSeller card
Marketing Sections
App Download SectionBlog Cards SectionCTA SectionFAQ SectionFeature GridFeature ShowcaseHero SectionIntegrations SectionLogo CloudMarketing FooterMarketing HeaderMarketing SectionNewsletter SectionPricing SectionStats SectionSteps SectionTeam SectionTestimonials SectionTimeline SectionVideo Section
Blocks
Admin Dashboard PageAdmin ShellAI Chat PageAPI Keys PageAutomation Builder PageCheckout PageCRM Contact PageCRM Pipeline PageError PagesInbox PageInvoice PageKPI DashboardListing Detail PageLogin PageMarketplace Home PageMarketplace Search PageMarketplace ShellMobile App HomeOnboarding FlowOrder History PagePost Listing WizardPricing PageProfile PageRegister PageSettings PageUsers Admin Page
Templates
About PageAcademy PageAccessibility PageAffiliate PageAgency PageAI Product PageAppointment Booking PageBlog PageBlog Post PageBug Bounty PageCareers PageChangelog PageCommunity PageCompare PageContact PageCustomer Story PageCustomers PageDemo Booking PageDevelopers PageDocs Home PageDownload PageEnterprise PageEvents PageExperts PageFAQ PageFeature PageGlossary PageHelp Article PageHelp Center PageHome Services PageImpact PageIntegration Detail PageIntegrations PageJob Detail PageLanding PageLaunch PageLegal PageManifesto PagePortfolio PagePress PageProduct Tour PagePromo PageReal Estate PageReferral PageResearch Report PageRestaurant PageRoadmap PageROI Calculator PageSecurity PageSolutions PageStartups PageStatus PageStorefront PageSwitch PageTemplate Gallery PageTravel PageWaitlist PageYear in Review Page
Hooks & Utilities
AI ChatChart kitCommerceDate utilsFile exportFile typesFiltersForm validationHapticsInvoicingMotion presetsNavigationNumber formatRelative timeRomanian locationsSpreadsheetText matchTonesUIProvideruseClipboarduseConsentuseControllableStateuseCooldownuseDebounceuseKeyboardInsetuseLocaleuseLongPressuseMediaControlsuseMediaQueryuseOverflowItemsusePersistedStateuseScrollEdgesuseScrollStateuseSelectionuseShortcutuseStickToBottom
GalleryTheme

Commerce

Pricing table

Commerce

Pricing table React component for Tailwind CSS v4

Price rangeProduct gallery
Live props
State
defaultPeriod
Behavior
showToggle
animatePrice
Content
yearlyDisplay
currency
locale
Layout
showComparison
columnsAuto
mobileLayout
Appearance
featuredStyle
size
radius
tone
color
savingsTone
Code
import { PricingTable } from "@/components/ui/pricing-table"

<PricingTable />
  1. Home
  2. Components
  3. Commerce
  4. Pricing table
Pro

Pricing table React component for Tailwind CSS v4

v1.0.0·Added in 1.0.0

A React pricing table: plans side by side with a monthly / yearly switch whose prices roll, a featured plan and a full comparison table.

Flip Monthly / Yearly (tap, drag the thumb, or arrow keys once it has focus) and every price rolls to its new value while the billed line cross-fades; a screen reader hears the featured plan's new price once. Each plan's button runs its action and shows a spinner while a returned promise is pending; the current plan shows a check instead. Hover, focus or click an (i) for its hint, or tap it on a phone (tap it again, tap outside or press Escape to close); a screen reader hears it as More info plus the feature it explains. On a phone the plans are swipeable cards that start at the featured one (drag, tap a dot, or Left / Right with focus inside), and the comparison becomes a plan switcher above one column of rows, ending in the picked plan's button. On a laptop the comparison is a real table whose header of plan names and buttons sticks while you scroll.

Pricing table is a Pro React component in the React commerce components category, written in TypeScript for React 19 and Tailwind CSS v4. It installs as source with npx wingo-ui@latest add pricing-table, together with Badge, Button, Carousel, Price, Segmented Control and 8 more and the npm packages motion and lucide-react.

Add to a project

Requirements: React 19 and Tailwind CSS v4, in Next.js (App Router or Pages), Vite or React Router. Installation guide · Next.js setup · Vite setup

npx wingo-ui@latest add pricing-table

Pricing table is part of Pro, with 298 more Pro items: $8 a month or $150 once. 14-day refund before you download any Pro item. See plans

Usage

Import PricingTable from @/components/ui/pricing-table.

import { PricingTable, type PricingPlan } from "@/components/ui/pricing-table"

const plans: PricingPlan[] = [
  { id: "start", name: "Start", price: 0, features: ["5 active listings", "Basic stats"] },
  {
    id: "pro",
    name: "Pro",
    price: { monthly: 9, yearly: 90 },
    featured: true,
    badge: "Most popular",
    features: ["50 active listings", "3 promotions a month", "Priority support"],
    note: "14 days free, no card",
  },
  { id: "business", name: "Business", price: { monthly: 29, yearly: 290 }, features: ["Unlimited listings"] },
]

export function SellerPlans() {
  return (
    <PricingTable
      plans={plans}
      currency="USD"
      tone="brand"
      labels={{ save: (_, formatted) => formatted, choose: (plan) => `Get ${plan}` }}
    />
  )
}

Props

  • plans*
    PricingPlan[]

    The plans, in order. PricingPlan = { id; name; description?; price: number | { monthly; yearly } | null; priceSuffix?; badge?; featured?; current?; features?: PricingFeature[]; featuresTitle?; cta?: { label; href?; onClick?: () => void | Promise<unknown> }; note?; disabled? }. price 0 is free, null is custom (the button defaults to labels.contact). PricingFeature = string | { label; included?; hint? }.

  • comparison
    PricingComparisonGroup[]

    The comparison below the plans, in groups: { label; rows: { label; hint?; values: Record<planId, boolean | ReactNode> }[] }. true is a check, false a dash, anything else prints as text.

  • defaultPerioddefault "monthly"
    "monthly" | "yearly"

    The billing period shown first while uncontrolled.

  • period
    "monthly" | "yearly"

    The billing period, controlled. Respected even with the toggle hidden.

  • onPeriodChange
    (period: BillingPeriod) => void

    Fires when the toggle changes the period.

  • showToggledefault true
    boolean

    Shows the Monthly / Yearly switch. It hides by itself when no plan has a yearly price.

  • yearlyDisplaydefault "per-month"
    "per-month" | "per-year"

    How a yearly price reads: per-month shows the monthly equivalent with "Billed $90 yearly" under it; per-year shows the yearly amount with what it saves.

  • showComparisondefault true
    boolean

    Shows the comparison table when comparison is given.

  • featuredStyledefault "raised"
    "raised" | "outline" | "inverted"

    How the featured plan stands out: raised floats higher and is 8px taller in the wide layout, outline draws a ring in the tone, inverted fills the card with the tone.

  • columnsdefault 0
    number

    Plans side by side in the wide layout. 0 is the plan count up to 4. More plans than columns scroll sideways with a peek of the next one.

  • mobileLayoutdefault "carousel"
    "carousel" | "stack"

    Below 768px of width: swipeable cards that start at the featured plan, with dots, or the cards stacked one under the other.

  • animatePricedefault true
    boolean

    Prices roll their digits to the new value on a period change. Reduced motion shows the new value at once.

  • sizedefault "md"
    "sm" | "md" | "lg"

    Card padding, type, price size and button height (sm: 40px buttons, md and lg: 48px).

  • radiusdefault "lg"
    "md" | "lg"

    Plan card corners: md 16px, lg 24px.

  • tonedefault "neutral"
    "neutral" | "brand" | "success" | "warning" | "danger" | "info"

    The featured plan's badge, button, ring or fill, and the feature checks (neutral keeps them in the text color, other tones turn them green).

  • colordefault ""
    string

    Any CSS color for the featured plan. Replaces the tone; text on it turns black or white by lightness.

  • savingsTonedefault "success"
    "neutral" | "brand" | "success" | "warning" | "danger" | "info"

    The tone of the "-20 %" badge in the yearly option (a saving is a status, so it is green by default).

  • currencydefault "USD"
    string

    ISO 4217 code for every price: "$", "€", "lei".

  • localedefault ""
    string

    Intl locale for prices and the savings badge ("$49", "12 €"). Empty uses the UIProvider locale, then the page.

  • labels
    Partial<PricingTableLabels>

    Every string, English by default (DEFAULT_PRICING_TABLE_LABELS): monthly, yearly, save (percent, formatted), perMonth "/mo", perYear "/yr", perMonthSpoken, perYearSpoken, billedYearly (amount), yearlySaving (amount), free, custom, contact, current, popular, included, notIncluded, compare, choose (plan), hint, period, plans, feature, slide (index, total) and showPlan (plan) for the phone carousel.

  • classNames
    Partial<Record<"header" | "toggle" | "plans" | "plan" | "price" | "cta" | "features" | "comparison", string>>

    Extra classes for the inner parts.

  • className
    string

    Extra classes for the root, merged last.

Parts

  • DEFAULT_PRICING_TABLE_LABELS

    constant

    The English strings: the period switch, "Save 20%", per month and per year, free, custom, "Most popular", "Current plan", the comparison table and the carousel. Override keys through labels.

  • PricingPlan

    type

    One plan: { id, name, description?, price (a number, { monthly, yearly }, 0 for free or null for custom), priceSuffix?, badge?, featured?, current?, features?, featuresTitle?, cta?, note?, disabled? }.

  • PricingComparisonGroup

    type

    A section of the comparison table: { label, rows }, each row { label, hint?, values } with one value per plan id (true / false for a check or a dash).

  • PricingTableProps

    type

    The props of PricingTable, for wrappers that load plans from your billing provider.

Examples

Brand, inverted featured plan

tone="brand" with featuredStyle="inverted": the one plan you want sold, filled with the brand color.

Current plan

Pro is the seller's plan (a check instead of a button); the others offer to switch.

Custom plan

price: null prints the custom label and the button defaults to "Contact sales".

SaaS in euro (en-US)

Acme CRM per user: decimals where the yearly price needs them, the default labels.

Two plans, stacked

mobileLayout="stack" and radius="md": the cards stack on a phone instead of swiping.

Comparison on a phone

Below 768px of width the comparison is a plan switcher above one column of rows; tap (i) for a hint.

Dependencies

motionlucide-reactbadgebuttoncarouselpricesegmented-controltabletooltipuse-controllable-stateuse-localecommercemotiontonesui-config

Files

  • components/ui/pricing-table.tsx

FAQ

Is the React Pricing table component free?

The preview, props and docs are free; copying the source needs a Pro plan. See plans.

How do I install Pricing table?

Run npx wingo-ui@latest add pricing-table. It also adds the Wingo UI items it builds on (Badge, Button, Carousel, Price, Segmented Control and 8 more) and the npm packages motion and lucide-react. With shadcn, add the @wingo-ui registry with your API key, then run npx shadcn@latest add @wingo-ui/pricing-table.

How does Pricing table behave on phones?

Hover, focus or click an (i) for its hint, or tap it on a phone (tap it again, tap outside or press Escape to close); a screen reader hears it as More info plus the feature it explains.

See also

PriceCart drawerSegmented ControlTableCarousel

Used in

Pricing Page

More React commerce components

ReviewsSeller cardQuantity stepperCoupon inputCategory pickerFilter panel
All 16 React commerce components

Articles using this component

  • SaaS Comparison Page: Honest vs Pages That Convert

    Build it: screens and apps · Nov 5, 2026 · 10 min read

  • Nextjs SaaS Landing Page: What Each Section Must Prove

    Build it: screens and apps · Oct 16, 2026 · 11 min read

  • Shadcn Blocks vs Components: When to Start From Which

    Comparisons and alternatives · Oct 16, 2026 · 11 min read

  • Shadcn Pricing Page: Yearly Toggle, Table, Phone Layout

    Build it: screens and apps · Oct 16, 2026 · 10 min read

PreviousPrice rangeNext Product gallery
Acme Market

Plans for sellers

Post more listings, promote them to the top of their category and sell faster. Change or cancel any time.

Start

For occasional sellers, at no cost.
FreeFree 
  • Included: 5 active listings
  • Not included: Promotions
  • Included: Basic stats
  • Included: Unlimited messages with buyers

Pro

Most popular
For sellers who post every week.
$9012345678901234567890/mo$9 per month 

14 days free, no card

Everything in Start, plus:

  • Included: 50 active listings
  • Included: 3 promotions a month
  • Included: Advanced stats
  • Included: “Pro Seller” badge
  • Included: Priority support

Business

For shops, car dealers and real estate agencies.
$29012345678901234567890012345678901234567890/mo$29 per month 

Everything in Pro, plus:

  • Included: Unlimited listings
  • Included: 15 promotions a month
  • Included: Business account with invoicing
  • Included: CSV import and API
  • Included: Dedicated account manager

Start

For occasional sellers, at no cost.
FreeFree 
  • Included: 5 active listings
  • Not included: Promotions
  • Included: Basic stats
  • Included: Unlimited messages with buyers

Pro

Most popular
For sellers who post every week.
$9012345678901234567890/mo$9 per month 

14 days free, no card

Everything in Start, plus:

  • Included: 50 active listings
  • Included: 3 promotions a month
  • Included: Advanced stats
  • Included: “Pro Seller” badge
  • Included: Priority support

Business

For shops, car dealers and real estate agencies.
$29012345678901234567890012345678901234567890/mo$29 per month 

Everything in Pro, plus:

  • Included: Unlimited listings
  • Included: 15 promotions a month
  • Included: Business account with invoicing
  • Included: CSV import and API
  • Included: Dedicated account manager

Compare plans

Listings

  • Active listings50
  • Listing duration60 days
  • Auto renewIncluded
  • CSV import and APINot included

Visibility

  • Promotions included a month3
  • “Pro Seller” badgeIncluded
  • StatsAdvanced
  • Store pageNot included

Support

  • Email supportIncluded
  • Response time4 h
  • Dedicated account managerNot included
Feature
Start
Pro
Business
Listings
Active listings550Unlimited
Listing duration30 days60 days90 days
Auto renewNot includedIncludedIncluded
CSV import and APINot includedNot includedIncluded
Visibility
Promotions included a monthNot included315
“Pro Seller” badgeNot includedIncludedIncluded
StatsBasicAdvancedAdvanced + export
Store pageNot includedNot includedIncluded
Support
Email supportIncludedIncludedIncluded
Response time48 h4 h1 h
Dedicated account managerNot includedNot includedIncluded

period=monthly · chosen: nothing yet