Billing SDK/Billing SDK
Pricing TablesPricing Table Three

Pricing Table Three

The Pricing Table Three component provides a third design option for pricing displays. You can use this component to display your pricing plans in a third way.

Playground
Save upto 17% with yearly plan

Starter

For developers testing out Liveblocks locally.

$0

Per month

PresenceIncluded
CommentsIncluded
NotificationsIncluded
Text EditorIncluded
Sync DatastoreIncluded
Most popular

Pro

For companies adding collaboration in production.

$20

Per month

PresenceIncluded
CommentsIncluded
NotificationsIncluded
Text EditorIncluded
Sync DatastoreIncluded

Enterprise

For organizations that need more support and compliance features.

Custom

Per month

PresenceIncluded
CommentsIncluded
NotificationsIncluded
Text EditorIncluded
Sync DatastoreIncluded

Pre-negotiated discounts are available to early-stage startups and nonprofits.

src/components/pricing-table-three-demo.tsx
"use client"

import { PricingTableThree } from "@/components/billingsdk/pricing-table-three"
import { plans } from "@/lib/billingsdk-config"

export function PricingTableThreeDemo() {
  return (
    <PricingTableThree
      plans={plans}
      onPlanSelect={(planId) => console.log("Selected plan:", planId)}
      className={"w-full max-w-4xl mx-auto"}
      variant="small"
      showFooter={true}
      footerText="Pre-negotiated discounts are available to early-stage startups and nonprofits."
      footerButtonText="Apply now"
      onFooterButtonClick={() => console.log("Footer button clicked")}
    />
  )
}

Installation

npx shadcn@latest add @billingsdk/pricing-table-three
pnpm dlx shadcn@latest add @billingsdk/pricing-table-three
yarn dlx shadcn@latest add @billingsdk/pricing-table-three
bunx shadcn@latest add @billingsdk/pricing-table-three
npx @billingsdk/cli add pricing-table-three
pnpm dlx @billingsdk/cli add pricing-table-three
yarn dlx @billingsdk/cli add pricing-table-three
bunx @billingsdk/cli add pricing-table-three

Usage

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)}
/>

Props

PropTypeDescription
plansPlan[]Array of pricing plans (see Plan interface)
titlestringMain title for the pricing section
descriptionstringSubtitle description
onPlanSelect(planId: string) => voidCallback 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 page.

Example

src/components/pricing-table-three-demo.tsx
"use client"

import { PricingTableThree } from "@/components/billingsdk/pricing-table-three"
import { plans } from "@/lib/billingsdk-config"

export function PricingTableThreeDemo() {
  return (
    <PricingTableThree
      plans={plans}
      onPlanSelect={(planId) => console.log("Selected plan:", planId)}
      className={"w-full max-w-4xl mx-auto"}
      variant="small"
      showFooter={true}
      footerText="Pre-negotiated discounts are available to early-stage startups and nonprofits."
      footerButtonText="Apply now"
      onFooterButtonClick={() => console.log("Footer button clicked")}
    />
  )
}