Tapas UI
Esc
  • IntroductionGetting startedWhat Tapas UI is and where to start.
  • InstallationGetting startedSet up shadcn/ui and add your first section.
  • CLI & AI agentsGetting startedThe shadcn CLI, the @tapas namespace, the MCP server and AI prompts.
  • TemplatesGetting startedWhole pages built from sections, installed with one command.
  • Demo sitesGetting startedThree fictional sites built only from Tapas sections.
  • ThemingCustomizationHow sections pick up your colors and radius.
  • ColorsCustomizationEvery CSS variable sections read, what it is for and where it is used.
  • Dark modeCustomizationSections follow your .dark variables.
  • MotionCustomizationPlain and motion versions, reduced motion and pause controls.
  • AccessibilityCustomizationWhat every section guarantees.
  • Waitlist formsGuidesPost signups to your own API route and store them.
  • Checkout linksGuidesPoint pricing buttons at Stripe payment links or any URL.
Menu
Browse the docs

DocsProof and conversion

Price morph

Pricing tiers with a monthly/yearly switch that works without JavaScript, and a save badge on yearly.

Preview

Version
Preview theme color
More themes

Switching the period morphs each price digit by digit, the save badge pops in on yearly, and a soft light crosses the featured plan once per switch. With reduced motion turned on, it renders the plain layout.

Simple pricing

Sample plans and prices.

Billing period
  • Solo

    For one product

    $9per month

    • 1 site
    • All sections
    • Email support
    Choose Solo
  • Studio

    Most popular

    For several launches

    $29per month

    • 10 sites
    • All templates
    • Priority support
    Choose Studio
  • Team

    For agencies

    $79per month

    • Unlimited sites
    • Shared themes
    • Onboarding call
    Choose Team

Simple pricing

Sample plans and prices.

Billing period
  • Solo

    For one product

    $9per month

    • 1 site
    • All sections
    • Email support
    Choose Solo
  • Studio

    Most popular

    For several launches

    $29per month

    • 10 sites
    • All templates
    • Priority support
    Choose Studio
  • Team

    For agencies

    $79per month

    • Unlimited sites
    • Shared themes
    • Onboarding call
    Choose Team

Installation

Run this in a project that already uses shadcn/ui. It adds the component and anything it needs; the motion version also adds the plain one and the motion package.

Usage

import { PriceMorph } from "@/components/custom/price-morph/price-morph";

<PriceMorph
  title="Simple pricing"
  plans={[
    {
      name: "Studio",
      monthly: 29,
      yearly: 276,
      featured: true,
      features: ["10 sites", "Priority support"],
      cta: { label: "Choose Studio", href: monthlyCheckoutUrl, yearlyHref: yearlyCheckoutUrl },
    },
  ]}
/>
import { PriceMorphMotion } from "@/components/custom/price-morph/price-morph-motion";

<PriceMorphMotion plans={plans} />

Props

PropTypeDefaultDescription
plans* (required){ name; description?; monthly; yearly; features; cta; featured? }[]–`yearly` is the price per year. The saving is worked out from the two prices.
plans[].cta* (required){ label; href; yearlyHref? }–Any link, such as a checkout URL. `yearlyHref` is used while yearly is selected.
currencystring"$"Shown before each price.
monthlyLabel / yearlyLabelstring"Monthly" / "Yearly"Switch labels.
featuredLabelstring"Most popular"Badge on the featured plan.
title / descriptionstring–Heading (h2) and line under it.
...propsReact.ComponentProps<"section">–Any other section attribute (id, aria-*, data-*, ref) goes to the root element.
PropTypeDefaultDescription
plans* (required){ name; description?; monthly; yearly; features; cta; featured? }[]–`yearly` is the price per year. The saving is worked out from the two prices.
plans[].cta* (required){ label; href; yearlyHref? }–Any link, such as a checkout URL. `yearlyHref` is used while yearly is selected.
currencystring"$"Shown before each price.
monthlyLabel / yearlyLabelstring"Monthly" / "Yearly"Switch labels.
featuredLabelstring"Most popular"Badge on the featured plan.
title / descriptionstring–Heading (h2) and line under it.
...propsReact.ComponentProps<"section">–Any other section attribute (id, aria-*, data-*, ref) goes to the root element.

Accessibility

  • The switch is a radio group named ā€œBilling periodā€; arrow keys change it.
  • Without JavaScript the switch still works: CSS reads the checked radio.
  • Each plan is a list item named after the plan, with its own h3.
  • The motion version follows the visitor's reduced-motion setting and never hides content before it animates.