āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/dodopayments/billingsdk/components/pricing-table/pricing-table-three ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
<Tabs items={['Preview', 'Code']} className="bg-transparent border-none"> <Tab value="Preview" className="border-none bg-transparent p-0 mt-3"> <PreviewComponents registryName="pricing-table-three"> <PricingTableThreeDemo /> </PreviewComponents> </Tab>
<Tab value="Code" className="mt-3"> <include cwd lang="tsx" meta='title="src/components/pricing-table-three-demo.tsx"'>src/components/pricing-table-three-demo.tsx</include> </Tab> </Tabs><Tabs items={['shadcn', 'billingSDK']} defaultValue="shadcn" className="bg-transparent border-none">
<Tab value="shadcn" className="border-none bg-transparent p-0 mt-3">
<Tabs items={['npx', 'pnpm', 'yarn', 'bun']} defaultValue="npx" groupId="installation-tabs">
<Tab value="npx">
bash npx shadcn@latest add @billingsdk/pricing-table-three
</Tab>
<Tab value="pnpm">
bash pnpm dlx shadcn@latest add @billingsdk/pricing-table-three
</Tab>
<Tab value="yarn">
bash yarn dlx shadcn@latest add @billingsdk/pricing-table-three
</Tab>
<Tab value="bun">
bash bunx shadcn@latest add @billingsdk/pricing-table-three
</Tab>
</Tabs>
</Tab>
<Tab value="billingSDK" className="border-none bg-transparent p-0 mt-3">
<Tabs items={['npx', 'pnpm', 'yarn', 'bun']} defaultValue="npx" groupId="billingsdk-cli-tabs">
<Tab value="npx">
bash npx @billingsdk/cli add pricing-table-three
</Tab>
<Tab value="pnpm">
bash pnpm dlx @billingsdk/cli add pricing-table-three
</Tab>
<Tab value="yarn">
bash yarn dlx @billingsdk/cli add pricing-table-three
</Tab>
<Tab value="bun">
bash bunx @billingsdk/cli add pricing-table-three
</Tab>
</Tabs>
</Tab>
</Tabs>
import { PricingTableThree } from "@/components/billingsdk/pricing-table-three";
import { plans } from "@/lib/billingsdk-config";
<PricingTableThree
plans={plans}
title="Pricing Plans"
description="Find the right plan for your business"
onPlanSelect={(planId) => console.log('Selected plan:', planId)}
/>
| Prop | Type | Description |
|------|------|-------------|
| plans | Plan[] | Array of pricing plans (see 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 |
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 page.
<include cwd lang="tsx" meta='title="src/components/pricing-table-three-demo.tsx"'>src/components/pricing-table-three-demo.tsx</include>
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā