# Pricing Table Two URL: /docs/components/pricing-table/pricing-table-two The Pricing Table Two component offers an alternative design approach for pricing displays. You can use this component to display your pricing plans in an alternative way. *** title: Pricing Table Two description: The Pricing Table Two component offers an alternative design approach for pricing displays. You can use this component to display your pricing plans in an alternative way. *** ## Classic Theme ```tsx title="src/components/pricing-table-two-demo.tsx" "use client"; import { plans } from "@/lib/billingsdk-config"; import { PricingTableTwo } from "@/components/billingsdk/pricing-table-two"; export function PricingTableTwoDemo() { return ( console.log("Selected plan:", planId)} size="small" // small, medium, large theme="classic" // minimal or classic /> ); } ``` ## Minimal Theme ```tsx title="src/components/pricing-table-two-minimal-demo.tsx" "use client"; import { plans } from "@/lib/billingsdk-config"; import { PricingTableTwo } from "@/components/billingsdk/pricing-table-two"; export function PricingTableTwoMinimalDemo() { return ( <> console.log("Selected plan:", planId)} size="small" // small, medium, large theme="minimal" // minimal or classic /> ); } ``` ## Installation ```bash npx shadcn@latest add @billingsdk/pricing-table-two ``` ```bash pnpm dlx shadcn@latest add @billingsdk/pricing-table-two ``` ```bash yarn dlx shadcn@latest add @billingsdk/pricing-table-two ``` ```bash bunx shadcn@latest add @billingsdk/pricing-table-two ``` ```bash npx @billingsdk/cli add pricing-table-two ``` ```bash pnpm dlx @billingsdk/cli add pricing-table-two ``` ```bash yarn dlx @billingsdk/cli add pricing-table-two ``` ```bash bunx @billingsdk/cli add pricing-table-two ``` ## Usage ```tsx import { PricingTableTwo } from "@/components/billingsdk/pricing-table-two"; import { plans } from "@/lib/billingsdk-config"; ``` ```tsx console.log('Selected plan:', planId)} size="small" // small, medium, large theme="classic" // minimal or classic /> ``` ## Props | Prop | Type | Description | | -------------- | --------------------------------- | ------------------------------------------------------------------------------ | | `plans` | `Plan[]` | Array of pricing plans (see [Plan interface](/docs/interfaces#plan-interface)) | | `title` | `string` | Main title for the pricing section | | `description` | `string` | Subtitle description | | `onPlanSelect` | `(planId: string) => void` | Callback when a plan is selected | | `variant` | `"small" \| "medium" \| "large"` | Size variant of the pricing table | ## Theming The pricing table component is styled using the `shadcn/ui` library. You can customize the colors and fonts by overriding the CSS variables. You can also get the theme from the [Theming](/docs/theming) page. ## Example ```tsx title="src/components/pricing-table-two-demo.tsx" "use client"; import { plans } from "@/lib/billingsdk-config"; import { PricingTableTwo } from "@/components/billingsdk/pricing-table-two"; export function PricingTableTwoDemo() { return ( console.log("Selected plan:", planId)} size="small" // small, medium, large theme="classic" // minimal or classic /> ); } ```