themeocean

Pricing Table

Pricing

About

Three pricing plan cards with a Monthly / Yearly switch, sliding prices and a highlighted popular plan. Shows yearly totals, a Custom price option and included or excluded features.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Pricing Table to your project and fits it to your theme.

Code

How Pricing Table is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

// This is a file with a demo for your component
// That's what users will see in the preview
// Create new files in this directory to add more demos

"use client";

import * as React from "react";
import { Component } from "@/components/ui/pricing-table";

export default function DemoOne() {
  const [choice, setChoice] = React.useState("");

  return (
    <div className="flex w-full flex-col items-center gap-10 bg-background px-4 py-16 text-foreground sm:py-20">
      <div className="max-w-2xl text-center">
        <p className="text-sm font-medium text-primary">Pricing</p>
        <h2 className="mt-2 text-3xl font-semibold tracking-tight sm:text-4xl">Simple plans that grow with you</h2>
        <p className="mt-3 text-base leading-7 text-muted-foreground">Start free, upgrade when you are ready, and cancel any time.</p>
      </div>

      <Component onSelect={(plan, billing) => setChoice(plan.name + " (" + billing + ")")} />

      <p className="h-5 text-sm text-muted-foreground" role="status">
        {choice ? "You chose: " + choice : ""}
      </p>
    </div>
  );
}

Dependencies

More by themeocean

View all
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    780
  • Floating Glassmorphic Navbar with Morphing Pill Indicator

    Floating Glassmorphic Navbar with Morphing Pill Indicator

    87
  • Mac-Style Floating Dock

    Mac-Style Floating Dock

    79
  • Nexus 3D Animated Login - Futuristic Authentication UI

    Nexus 3D Animated Login - Futuristic Authentication UI

    72
  • Animated 3D Perspective Hero with Floating Glass Layers

    Animated 3D Perspective Hero with Floating Glass Layers

    51
  • Interactive AI Agent Workflow Node Card

    Interactive AI Agent Workflow Node Card

    38
  • Interactive LLM Token & Context Window Visualizer

    Interactive LLM Token & Context Window Visualizer

    31
  • Interactive AI Voice Assistant Audio Visualizer

    Interactive AI Voice Assistant Audio Visualizer

    24

More in Pricing

View all
  • Pricing Section

    Pricing Section

    733
  • Executive Pricing Plan

    Executive Pricing Plan

    20
  • Pricing Section 1

    Pricing Section 1

    109
  • Single Pricing Card

    Single Pricing Card

    829
  • Review Stack Pricing

    Review Stack Pricing

    11
  • Toggleable Add-on Pricing

    Toggleable Add-on Pricing

    229
  • Toggle Pricing Cards

    Toggle Pricing Cards

    112
  • Pricing Card

    Pricing Card

    409