Componentdata3.39 KB gzipZero dependencies
Pricing Table
3-tier matrix with billing switcher, highlighted plan and feature checklist.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add pricing-tableOr install the full npm package:
npm install bigbulluiUsage
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 helperZero 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 />| Prop | Type | Description |
|---|---|---|
| title | string | Primary heading or title text. (Default: "ADMISSION TIERS") |
| subtitle | string | Supporting secondary heading text. |
| badge | string | Configures badge. (Default: "BOX OFFICE TARIFFS") |
| tiers | PricingTier[] | Configures tiers. (Default: DEFAULT_TIERS) |
| billingCycle | BillingCycle | Configures billing cycle. |
| defaultBillingCycle | BillingCycle | Configures default billing cycle. (Default: "annual") |
| onBillingCycleChange | (cycle: BillingCycle) => void | Callback invoked on billing cycle change. |
| annualDiscountBadge | string | Configures annual discount badge. (Default: "SAVE 20%") |
| currencySymbol | string | Configures currency symbol. (Default: "$") |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |