# Pricing card

Plan pricing, features and billing options.

Access: pro. Category: Marketing. Kind: composite.

## When to use

- Use it when a page needs plan pricing, features and billing options.
- Choose it as the pricing region when composing a page from independently reusable TidalUI sections.

## Alternatives

- Choose pricing-section instead when the page needs plan comparison, framing copy, and actions as one region.

## Setup for agents

Use React 19 and TypeScript. Initialize shadcn for your framework, then merge this exact entry into components.json:

```json
{
  "registries": {
    "@tidal-pro": {
      "url": "https://tidalui.com/r/pro/{name}.json",
      "headers": {
        "Authorization": "Bearer ${TIDALUI_TOKEN}"
      }
    }
  }
}
```

The namespace must be named **@tidal-pro** because transitive Pro dependencies use that namespace. Obtain an agent key from your active Pro account at https://tidalui.com/account. Keep TIDALUI_TOKEN in your local environment, never in components.json, client code, Git or logs.

```sh
export TIDALUI_TOKEN='your-private-agent-key'
npx shadcn@latest add @tidal-pro/waitlist-form
npx shadcn@latest add https://tidalui.com/r/tidal-button.json
```

Free command: `npx shadcn@latest add https://tidalui.com/r/<name>.json`.
Pro command: `npx shadcn@latest add @tidal-pro/<name>`.

Import the base stylesheet and every stylesheet listed on the installed item's metadata. For example:

```tsx
import "./components/ui/tidal.css";
import "./components/ui/hero-section.css";
// Place installed components inside this wrapper:
<div className="tidal-scope" data-theme="dark">...</div>
```

Omit data-theme for the default light theme. Put the attribute on the same tidal-scope element for dark mode. Every component installs the shared free tidal-base dependency. After upgrading, run `npx shadcn@latest add https://tidalui.com/r/tidal-base.json --overwrite` to receive current tokens. Review local modifications before overwriting.

Vite: Use React + TypeScript. Map @/* to ./src/* in paths and Vite resolve.alias. Import tidal.css and each component stylesheet in your application entry.

Next.js 15 App Router: Next.js App Router: import tidal.css and component CSS in app/layout.tsx. Interactive examples belong in a client component with "use client". Map @/* to ./* or ./src/* to match your project.

TypeScript 6: use paths without baseUrl:

```json
{
  "compilerOptions": {
    "paths": {
      "@/*": [
        "./src/*"
      ]
    }
  }
}
```

Pro registry requests are server/CLI-only. Use the same-origin account interface in a browser; cross-origin Authorization preflights are intentionally unsupported.


## Install Pricing card

```sh
npx shadcn@latest add @tidal-pro/pricing-card
```

Stylesheets: `components/ui/tidal.css`, `components/ui/pricing-card.css`.

## Minimal example

```tsx
import"./components/ui/tidal.css";
import"./components/ui/pricing-card.css";
import{TidalPricingCard}from"./components/ui/pricing-card";
export default()=><div className="tidal-scope"><TidalPricingCard cta={"value"} description={"Demo"} features={["value"]} name={"Demo"} onChoose={() => {}} price={"value"}/></div>;
```

## Structured props

- `TidalPricingCard.cta: string`: Required cta value accepted by this exported component.
- `TidalPricingCard.description: string`: Required description value accepted by this exported component.
- `TidalPricingCard.features: Array<string>`: Required features value accepted by this exported component.
- `TidalPricingCard.name: string`: Required name value accepted by this exported component.
- `TidalPricingCard.onChoose: () => void`: Callback invoked when the choose interaction is proposed.
- `TidalPricingCard.price: string`: Required price value accepted by this exported component.
- `TidalPricingCard.badge?: string | undefined`: Optional badge value accepted by this exported component.
- `TidalPricingCard.className?: string | undefined` (default ""): Optional class name value accepted by this exported component.
- `TidalPricingCard.disabled?: boolean | undefined` (default false): Optional disabled value accepted by this exported component.
- `TidalPricingCard.featured?: boolean | undefined` (default false): Optional featured value accepted by this exported component.
- `TidalPricingCard.href?: string | undefined`: Use a link when the action navigates, including without JavaScript.
- `TidalPricingCard.loading?: boolean | undefined` (default false): Optional loading value accepted by this exported component.
- `TidalPricingCard.note?: string | undefined`: Optional note value accepted by this exported component.
- `TidalPricingCard.period?: string | undefined`: Optional period value accepted by this exported component.

## Complete usage example

[Source](https://tidalui.com/examples/pricing-card.tsx) | [Manifest](https://tidalui.com/examples/pricing-card.json). Install the listed additional dependencies. Consumer fixture: TypeScript pass; Vite pass. This fixture check is distinct from the actual shadcn install receipt.

```tsx
import "./components/ui/tidal.css";

import { useState } from "react";

import { TidalSegmentedControl } from "./components/ui/segmented-control";

import "./components/ui/segmented-control.css";

import { TidalPricingCard } from "./components/ui/pricing-card";

import "./components/ui/pricing-card.css";



const tidalExampleStyles = ".pricing-specimen{width:100%;max-width:320px}.pricing-specimen>.tidal-segments{margin-bottom:14px}";

export function PricingDemo() {
  const [billing, setBilling] = useState("monthly");
  const [chosen, setChosen] = useState(false);
  return (
    <div className="pricing-specimen">
      <TidalSegmentedControl
        label="Sample plan billing"
        options={[
          { value: "monthly", label: "Monthly" },
          { value: "yearly", label: "Yearly" },
        ]}
        value={billing}
        onValueChange={(value) => {
          setBilling(value);
          setChosen(false);
        }}
      />
      <TidalPricingCard
        name="Studio"
        description="For teams building multiple projects."
        price={billing === "monthly" ? "$29" : "$23"}
        period="/ month"
        badge="Most popular"
        featured
        features={[
          "Unlimited projects",
          "Your own custom domain",
          "Bring your whole team",
        ]}
        cta={chosen ? "Plan selected" : "Choose Studio"}
        onChoose={() => setChosen(true)}
        note={
          chosen
            ? "Sample selection only. No payment is taken."
            : billing === "yearly"
              ? "Sample plan · $276 billed yearly."
              : "Sample plan · Monthly billing."
        }
      />
    </div>
  );
}

export default function AgentExample() {
  return (
    <div className="tidal-scope" data-theme="light" dir="ltr">
      <style>{tidalExampleStyles}</style>
      <PricingDemo />
    </div>
  );
}

```

## Gotchas

- The host application owns data, validation, persistence, navigation, and service side effects described by this API.

## Theme and accessibility

{"tokens":["--t-accent","--t-border","--t-border-strong","--t-canvas","--t-danger","--t-display","--t-ease-out","--t-ease-spring","--t-faint","--t-font","--t-ink","--t-line","--t-muted","--t-primary","--t-primary-contrast","--t-radius-card","--t-radius-control","--t-radius-overlay","--t-radius-panel","--t-ring","--t-shadow-lg","--t-shadow-soft","--t-soft","--t-subtle","--t-surface","--t-wash"],"darkMode":true}

{"keyboard":["Tab and Shift+Tab follow the component's native focus order.","Arrow-key behavior follows the exported composite-control implementation."],"aria":"The component wires labels and relationships from consumer-provided visible text or ARIA props; preserve those labels in production.","notes":"Verify focus visibility, text alternatives, contrast, and reduced motion in the final composition."}

name, description, formatted price, features, cta, onChoose required. Optional period, badge, note, featured, loading, disabled, className. Display-only card; consumer owns checkout, terms and billing actions.
