āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/dodopayments/billingsdk/quick-start ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
import { Tab, Tabs } from 'fumadocs-ui/components/tabs' import { Callout } from 'fumadocs-ui/components/callout'
A React or Next.js project with Tailwind CSS is required. Install any component with a single command:
<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-one
</Tab>
<Tab value="pnpm">
bash pnpm dlx shadcn@latest add @billingsdk/pricing-table-one
</Tab>
<Tab value="yarn">
bash yarn dlx shadcn@latest add @billingsdk/pricing-table-one
</Tab>
<Tab value="bun">
bash bunx shadcn@latest add @billingsdk/pricing-table-one
</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-one
</Tab>
<Tab value="pnpm">
bash pnpm dlx @billingsdk/cli add pricing-table-one
</Tab>
<Tab value="yarn">
bash yarn dlx @billingsdk/cli add pricing-table-one
</Tab>
<Tab value="bun">
bash bunx @billingsdk/cli add pricing-table-one
</Tab>
</Tabs>
</Tab>
</Tabs>
This will automatically install the component and its dependencies into your project.
<Callout title="From Existing Project?"> All components are designed to integrate seamlessly with existing Next.js and React applications. </Callout>For new projects or comprehensive billing integration, use our CLI tool for complete project setup with framework configuration and payment provider integration.
<Tabs items={['npm', 'pnpm', 'yarn', 'bun']}>
<Tab value="npm">
bash npx @billingsdk/cli init
</Tab>
The CLI provides an interactive setup that will:
For existing projects, you can also add specific components using the CLI:
# Add a pricing table
npx @billingsdk/cli add pricing-table-one
# Add subscription management
npx @billingsdk/cli add subscription-management
# Add usage monitoring
npx @billingsdk/cli add usage-meter-circle
Create your first billing component setup.
// no need to manually add this file. already added whenever you install a component.
export const plans = [{
id: 'starter',
title: 'Starter',
description: 'Perfect for getting started',
monthlyPrice: '$0',
yearlyPrice: '$0',
buttonText: 'Get Started',
features: [
{ name: 'Basic features', icon: 'check' }
]
}]
Use the component in your application and see it in action.
<Tabs items={['npm', 'pnpm', 'yarn', 'bun']}>
<Tab value="npm">
bash npm run dev
</Tab>
npx shadcn@latest add @billingsdk/pricing-table-one
import { PricingTableOne } from "@/components/billingsdk/pricing-table-one";
import { plans } from "@/lib/billingsdk-config";
export default function PricingPage() {
return (
<PricingTableOne
plans={plans}
title="Choose Your Plan"
description="Select the perfect plan for your needs"
onPlanSelect={(planId) => console.log('Selected plan:', planId)}
/>
);
}
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā