# Pricing Table One URL: /docs/components/pricing-table/pricing-table-one The Pricing Table One component provides a clean and modern design for displaying pricing plans. You can use this component to display your pricing plans in a clean and modern way. *** title: Pricing Table One description: The Pricing Table One component provides a clean and modern design for displaying pricing plans. You can use this component to display your pricing plans in a clean and modern way. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ## Classic Theme ```tsx title="src/components/pricing-table-one-demo.tsx" "use client"; import { PricingTableOne } from "@/components/billingsdk/pricing-table-one"; import { plans } from "@/lib/billingsdk-config"; export function PricingTableOneDemo() { return ( console.log("Selected plan:", planId)} size="medium" // small, medium, large theme="classic" // minimal or classic className="w-full" /> ); } ``` ## Minimal Theme ```tsx title="src/components/pricing-table-one-minimal-demo.tsx" "use client"; import { PricingTableOne } from "@/components/billingsdk/pricing-table-one"; import { plans } from "@/lib/billingsdk-config"; export function PricingTableOneMinimalDemo() { return ( <> console.log("Selected plan:", planId)} size="small" // small, medium, large theme="minimal" // minimal or classic className="w-full" /> ); } ``` ## Installation ```bash npx shadcn@latest add @billingsdk/pricing-table-one ``` ```bash pnpm dlx shadcn@latest add @billingsdk/pricing-table-one ``` ```bash yarn dlx shadcn@latest add @billingsdk/pricing-table-one ``` ```bash bunx shadcn@latest add @billingsdk/pricing-table-one ``` ```bash npx @billingsdk/cli add pricing-table-one ``` ```bash pnpm dlx @billingsdk/cli add pricing-table-one ``` ```bash yarn dlx @billingsdk/cli add pricing-table-one ``` ```bash bunx @billingsdk/cli add pricing-table-one ``` ## Usage ```tsx import { PricingTableOne } from "@/components/billingsdk/pricing-table-one"; 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 | | `size` | `"small" \| "medium" \| "large"` | Size variant of the pricing table | | `theme` | `"minimal" \| "classic"` | Theme 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-one-demo.tsx" "use client"; import { PricingTableOne } from "@/components/billingsdk/pricing-table-one"; import { plans } from "@/lib/billingsdk-config"; export function PricingTableOneDemo() { return ( console.log("Selected plan:", planId)} size="medium" // small, medium, large theme="classic" // minimal or classic className="w-full" /> ); } ```