Billing SDK/Billing SDK
Pricing TablesPricing Table Four

Pricing Table Four

The Pricing Table Four component provides a modern gradient design for displaying pricing plans. This component features beautiful gradients, smooth animations, and a contemporary card-based layout.

Simple Pricing

Choose Your Perfect Plan

Transform your project with our comprehensive pricing options designed for every need.

$0
/Free

Starter

For developers testing out Liveblocks locally.

Features:

  • Presence
  • Comments
  • Notifications
  • Text Editor
  • Sync Datastore
Most popular
$20
/month

Pro

For companies adding collaboration in production.

Features:

  • Presence
  • Comments
  • Notifications
  • Text Editor
  • Sync Datastore
Custom
/month

Enterprise

For organizations that need more support and compliance features.

Features:

  • Presence
  • Comments
  • Notifications
  • Text Editor
  • Sync Datastore
src/components/pricing-table-four-demo.tsx
"use client"

import { PricingTableFour } from "@/components/billingsdk/pricing-table-four"
import { plans } from "@/lib/billingsdk-config"

export function PricingTableFourDemo() {
    return (
        <PricingTableFour 
            plans={plans}
            title="Choose Your Perfect Plan"
            description="Transform your project with our comprehensive pricing options designed for every need."
            onPlanSelect={(planId: string) => console.log('Selected plan:', planId)}
            size="medium"
            className="w-full"
        />
    )
}

Installation

npx shadcn@latest add @billingsdk/pricing-table-four
pnpm dlx shadcn@latest add @billingsdk/pricing-table-four
npx shadcn@latest add @billingsdk/pricing-table-four

Usage

import { PricingTableFour } from "@/components/billingsdk/pricing-table-four";
import { plans } from "@/lib/billingsdk-config";

<PricingTableFour 
  plans={plans}
  title="Choose Your Plan"
  description="Select the perfect plan for your needs. Upgrade or downgrade anytime."
  onPlanSelect={(planId) => console.log('Selected plan:', planId)}
  size="medium"
/>

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
size"small" | "medium" | "large"Size variant of the pricing table

Features

  • Responsive Layout: Grid-based layout that adapts to different screen sizes
  • Interactive Elements: Hover effects and smooth transitions
  • Billing Toggle: Monthly/yearly billing toggle with discount display
  • Highlight Support: Special styling for featured/popular plans
  • Customizable Sizing: Small, medium, and large size variants

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-four-demo.tsx
"use client"

import { PricingTableFour } from "@/components/billingsdk/pricing-table-four"
import { plans } from "@/lib/billingsdk-config"

export function PricingTableFourDemo() {
    return (
        <PricingTableFour 
            plans={plans}
            title="Choose Your Perfect Plan"
            description="Transform your project with our comprehensive pricing options designed for every need."
            onPlanSelect={(planId: string) => console.log('Selected plan:', planId)}
            size="medium"
            className="w-full"
        />
    )
}

Credits