Componentdata3.39 KB gzipZero dependencies

Pricing Table

3-tier matrix with billing switcher, highlighted plan and feature checklist.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add pricing-table

Or install the full npm package:

npm install bigbullui

Usage

tsx7 lines
import { PricingTable } from "@/components/ui/pricing-table"; <PricingTable  title="ADMISSION TIERS"  subtitle="Select your access pass. Upgrade or cancel anytime."  annualDiscountBadge="SAVE 20%"/>

Source code

pricing-table.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxpricing-table.tsx458 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export type BillingCycle = "monthly" | "annual"; export interface PricingFeature {  text: string;  included?: boolean;  hint?: string;  isNew?: boolean;} export interface PricingTier {  id: string;  name: string;  subtitle?: string;

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { PricingTable } from "@/components/ui/pricing-table"; <PricingTable />
PropTypeDescription
titlestringPrimary heading or title text. (Default: "ADMISSION TIERS")
subtitlestringSupporting secondary heading text.
badgestringConfigures badge. (Default: "BOX OFFICE TARIFFS")
tiersPricingTier[]Configures tiers. (Default: DEFAULT_TIERS)
billingCycleBillingCycleConfigures billing cycle.
defaultBillingCycleBillingCycleConfigures default billing cycle. (Default: "annual")
onBillingCycleChange(cycle: BillingCycle) => voidCallback invoked on billing cycle change.
annualDiscountBadgestringConfigures annual discount badge. (Default: "SAVE 20%")
currencySymbolstringConfigures currency symbol. (Default: "$")
classNamestringOptional Tailwind or custom CSS classes merged with component styles.