# Pricing page template

A complete responsive sample-pricing page with navigation, plan cards, semantic comparison, questions, next steps, and footer.

Access: pro. Category: Templates. Kind: template.

## When to use

- Use it to start a complete pricing page template whose major regions should share one responsive composition.
- Choose it as the nav region when composing a page from independently reusable TidalUI sections.

## Alternatives

- Choose dashboard-layout instead when a responsive semantic dashboard shell with composable header, navigation, main content, and an in-flow mobile disclosure is the actual interface need, rather than pricing page template.

## 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 page template

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

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

## Minimal example

```tsx
import"./components/ui/tidal.css";
import"./components/ui/pricing-page-template.css";
import{TidalPricingPageTemplate}from"./components/ui/pricing-page-template";
export default(p:Parameters<typeof TidalPricingPageTemplate>[0])=><div className="tidal-scope"><TidalPricingPageTemplate {...p}/></div>;
```

## Structured props

- `TidalPricingPageTemplate.callToAction: TidalPricingPageCallToActionConfig`: Required call to action value accepted by this exported component.
- `TidalPricingPageTemplate.comparison: TidalPricingPageComparisonConfig`: Required comparison value accepted by this exported component.
- `TidalPricingPageTemplate.faq: TidalPricingPageFaqConfig`: Required faq value accepted by this exported component.
- `TidalPricingPageTemplate.footer: TidalPricingPageFooterConfig`: Required footer value accepted by this exported component.
- `TidalPricingPageTemplate.navigation: TidalPricingPageNavigationConfig`: Required navigation value accepted by this exported component.
- `TidalPricingPageTemplate.pricing: TidalPricingPagePricingConfig`: Required pricing value accepted by this exported component.
- `TidalPricingPageTemplate.title: ReactNode`: Required title value accepted by this exported component.
- `TidalPricingPageTemplate.description?: ReactNode`: Optional description value accepted by this exported component.
- `TidalPricingPageTemplate.eyebrow?: ReactNode`: Optional eyebrow value accepted by this exported component.
- `TidalPricingPageTemplate.sampleNote?: ReactNode`: Optional sample note value accepted by this exported component.
- `TidalPricingPageTemplate.sectionIds?: { pricing?: string; comparison?: string; faq?: string; callToAction?: string; } | undefined`: Optional section ids value accepted by this exported component.
- `TidalPricingPageTemplate.theme?: "light" | "dark" | undefined` (default "light"): Optional theme value accepted by this exported component.

## Complete usage example

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

```tsx
"use client";

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

import { useId, useMemo, useState } from "react";

import { TidalPricingPageTemplate } from "./components/ui/pricing-page-template";

import type { TidalPricingBillingOption, TidalPricingPlan } from "./components/ui/pricing-section";

import type { TidalComparisonColumn, TidalComparisonFeature } from "./components/ui/feature-comparison-table";

import type { TidalFaqGroup } from "./components/ui/faq-section";

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

import "./components/ui/feature-comparison-table.css";

import "./components/ui/faq-section.css";

import "./components/ui/pricing-page-template.css";

import "./components/ui/navigation-bar.css";

import "./components/ui/accordion.css";

import "./components/ui/call-to-action-section.css";

import "./components/ui/footer.css";



const BILLING_OPTIONS: readonly TidalPricingBillingOption[] = [
  { id: "monthly", label: "Monthly", period: "Sample monthly display" },
  { id: "annual", label: "Annual", period: "Sample yearly display" },
];

const PLANS: readonly TidalPricingPlan[] = [
  {
    id: "starter",
    name: "Starter",
    description: "A small fictional workspace for up to three sample projects.",
    prices: {
      monthly: { amount: "$18", period: "per month", note: "Sample USD" },
      annual: {
        amount: "$15",
        period: "per month",
        note: "$180 sample yearly",
      },
    },
    features: [
      { id: "projects", label: "Project workspace", included: true },
      { id: "review", label: "Review notes", included: true },
      { id: "history", label: "Extended history", included: false },
    ],
    action: { label: "Select Starter sample", type: "button" },
  },
  {
    id: "team",
    name: "Team",
    description:
      "A fictional shared workspace with unlimited sample projects and more review context.",
    prices: {
      monthly: { amount: "$32", period: "per month", note: "Sample USD" },
      annual: {
        amount: "$27",
        period: "per month",
        note: "$324 sample yearly",
      },
    },
    features: [
      { id: "projects", label: "Project workspace", included: true },
      { id: "review", label: "Review notes", included: true },
      { id: "history", label: "Extended history", included: true },
    ],
    action: { label: "Select Team sample", type: "button" },
    badge: "Sample featured",
    featured: true,
  },
];

const COMPARISON_FEATURES: readonly TidalComparisonFeature[] = [
  {
    id: "projects",
    label: "Sample projects",
    description: "Visible local project entries.",
    values: {
      starter: { kind: "text", value: "3" },
      team: { kind: "text", value: "Unlimited sample" },
    },
  },
  {
    id: "review",
    label: "Review notes",
    values: {
      starter: { kind: "available" },
      team: { kind: "available" },
    },
  },
  {
    id: "history",
    label: "Extended history",
    values: {
      starter: { kind: "unavailable" },
      team: { kind: "available" },
    },
  },
];

const FAQ_GROUPS: readonly TidalFaqGroup[] = [
  {
    id: "plans",
    label: "Sample plans",
    questions: [
      {
        value: "sample-only",
        title: "Can I buy a plan from this preview?",
        searchText: "buy checkout payment purchase",
        answer:
          "No. The prices and plan choices are fictional display data. This preview has no checkout or payment connection.",
      },
      {
        value: "billing-toggle",
        title: "What does the billing switch change?",
        searchText: "monthly annual billing switch",
        answer:
          "It changes the supplied local price strings and comparison context only.",
      },
    ],
  },
  {
    id: "workspace",
    label: "Workspace",
    questions: [
      {
        value: "workspace-created",
        title: "Does selecting a plan create a workspace?",
        searchText: "workspace account create",
        answer:
          "No. Selection updates local React state and a visible sample message only.",
      },
    ],
  },
];

export interface PricingPageTemplateDemoProps {
  theme?: "light" | "dark";
}

export function PricingPageTemplateDemo({
  theme = "light",
}: PricingPageTemplateDemoProps) {
  const instanceId = useId().replace(/:/g, "");
  const topId = `pricing-sample-top-${instanceId}`;
  const plansId = `pricing-sample-plans-${instanceId}`;
  const comparisonId = `pricing-sample-comparison-${instanceId}`;
  const questionsId = `pricing-sample-questions-${instanceId}`;
  const nextStepId = `pricing-sample-next-step-${instanceId}`;
  const [billing, setBilling] = useState("monthly");
  const [selectedPlan, setSelectedPlan] = useState<string | null>(null);
  const [openQuestion, setOpenQuestion] = useState("");
  const [message, setMessage] = useState(
    "Monthly sample prices are visible. No plan is selected.",
  );

  const comparisonColumns = useMemo<readonly TidalComparisonColumn[]>(
    () =>
      PLANS.map((plan) => ({
        id: plan.id,
        label: plan.name,
        accessibleLabel: `${plan.name} sample plan`,
        description: `${plan.prices[billing]?.amount ?? ""} sample ${billing}`,
        badge: plan.badge,
        action: {
          id: `${plan.id}-link`,
          kind: "link" as const,
          href: `#${plansId}`,
          label: `Review ${plan.name}`,
          accessibleLabel: `Review the ${plan.name} sample plan`,
          variant: plan.featured ? ("primary" as const) : undefined,
        },
      })),
    [billing, plansId],
  );

  function resetSample() {
    setBilling("monthly");
    setSelectedPlan(null);
    setOpenQuestion("");
    setMessage("The pricing sample returned to its initial state.");
  }

  return (
    <TidalPricingPageTemplate
      id={topId}
      theme={theme}
      title="Straightforward plans for a sample workspace."
      eyebrow="Fictional pricing preview"
      description="Compare supplied display prices and features without opening a checkout, account, or payment flow."
      sectionIds={{
        pricing: plansId,
        comparison: comparisonId,
        faq: questionsId,
        callToAction: nextStepId,
      }}
      navigation={{
        title: "Northstar",
        brandHref: `#${topId}`,
        navigationLabel: "Sample pricing navigation",
        links: [
          { id: "plans", label: "Plans", href: `#${plansId}` },
          {
            id: "compare",
            label: "Compare",
            href: `#${comparisonId}`,
          },
          {
            id: "questions",
            label: "Questions",
            href: `#${questionsId}`,
          },
        ],
        actionItems: [
          { id: "reset", label: "Reset sample", onClick: resetSample },
        ],
      }}
      pricing={{
        title: "Choose a sample plan",
        eyebrow: "Plans",
        description: "The amounts below are fictional USD display values.",
        plans: PLANS,
        billingOptions: BILLING_OPTIONS,
        billing,
        onBillingChange: (option) => {
          setBilling(option.id);
          setMessage(`${option.label} sample prices are visible.`);
        },
        selectedPlanId: selectedPlan,
        onSelectedPlanChange: (plan) => setSelectedPlan(plan.id),
        onPlanSelect: (plan, option) =>
          setMessage(
            `${plan.name} is selected with ${option.label.toLowerCase()} sample pricing. No order was created.`,
          ),
      }}
      comparison={{
        title: "Compare the supplied features",
        eyebrow: null,
        description:
          "Read each fictional plan column against the same feature rows.",
        caption: "Starter and Team sample plan comparison",
        columns: comparisonColumns,
        features: COMPARISON_FEATURES,
      }}
      faq={{
        title: "Pricing questions",
        eyebrow: null,
        description: "Open a concise answer about this local sample.",
        groups: FAQ_GROUPS,
        value: openQuestion,
        onValueChange: setOpenQuestion,
        summaryHint: "Open a supplied question to inspect its answer.",
      }}
      callToAction={{
        title: "Review the sample before connecting commerce.",
        eyebrow: "Next step",
        description: "Return to the plan cards or reset every local choice.",
        detailLabel: "Current selection",
        detail: selectedPlan
          ? `${selectedPlan === "team" ? "Team" : "Starter"}, ${billing}`
          : "No sample plan selected",
        actions: [
          {
            id: "plans",
            kind: "link",
            href: `#${plansId}`,
            label: "Review sample plans",
            variant: "primary",
          },
          {
            id: "reset",
            kind: "button",
            label: "Reset page sample",
            onAction: resetSample,
          },
        ],
        footer:
          "No checkout, payment, subscription, or account action is connected.",
      }}
      footer={{
        brand: <a href={`#${topId}`}>Northstar</a>,
        description: "A fictional pricing page sample.",
        groups: [
          {
            id: "pricing",
            title: "Pricing",
            links: [
              { href: `#${plansId}`, label: "Plans" },
              { href: `#${comparisonId}`, label: "Comparison" },
            ],
          },
          {
            id: "page",
            title: "Page",
            links: [
              { href: `#${questionsId}`, label: "Questions" },
              { href: `#${topId}`, label: "Back to top" },
            ],
          },
        ],
        legal: <span>Fictional sample pricing for local review.</span>,
      }}
      sampleNote={<output aria-live="polite">{message}</output>}
    />
  );
}

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

```

## Gotchas

- Install the declared registry dependencies and render inside a tidal-scope with the foundation stylesheet loaded.

## 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}

{"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."}

title plus navigation, pricing, comparison, faq, callToAction and footer configs are required. The template renders one h1 inside a content div, fixes composed sections at h2 and preserves their accepted descendant hierarchy without creating a nested main landmark. Typed configs are inferred from @tidal-pro/navigation-bar, @tidal-pro/pricing-section, @tidal-pro/feature-comparison-table, @tidal-pro/faq-section, @tidal-pro/call-to-action-section and @tidal-pro/footer. Stable navigation item IDs and dedicated wrapper refs are consumed before native child props are forwarded. Collision-safe section IDs may be overridden for real in-page destinations. Theme defaults to light and may be dark. Optional eyebrow, description and sampleNote preserve numeric zero. Consumers own every plan, price, calculation, billing/selection state, feature value, action, destination, question, statement and outcome. The template performs no checkout, payment, purchase, subscription, account, request, routing, analytics, network, storage or persistence action.
