nook
Browse the docs

Components

Pricing table

Native

Monthly and yearly plans, as cards or a full feature comparison.

See the prompt
Billing interval

Save 25% with yearly billing

Solo

$12.00 / month

Billed monthly

A focused home for independent work.

  • Included3 active projects
  • IncludedUnlimited notes
  • Not includedTeam permissions

Studio

Recommended
$28.00 / month

Billed monthly

Keep a small team moving together.

  • IncludedUnlimited projects
  • IncludedUnlimited notes
  • IncludedTeam permissions

Installation

npx nook-ui@latest add pricing-table

Prompt

Paste this into your AI coding assistant. It adds this exact component, the same way the CLI does, and tells the assistant how to use it.

Short. For assistants that can run commands in your project.

Plain text
Add the Nook "Pricing table" component to this project, exactly as Nook ships it.

Monthly and yearly plans, as cards or a full feature comparison.

Steps
1. Check for `nook.json` in the project root. If it is missing, run `npx nook-ui@latest init` first (React or Next.js with Tailwind CSS v4). It adds the Nook tokens, the theme and `cn()`.
2. Run `npx nook-ui@latest add pricing-table`. It writes `components/ui/pricing-table.tsx` together with everything the component needs. Do not write the component from memory.
3. If you cannot run commands, fetch http://localhost:3000/r/pricing-table.json, write every entry of `files` to the path it names, install the packages in `dependencies`, and repeat for each name in `registryDependencies`.
4. Use it where I ask. Start from this example:

```tsx
"use client";

import * as React from "react";
import { PricingTable, type PricingPlan } from "@/components/ui/pricing-table";

export const studioPlans: PricingPlan[] = [
  {
    id: "solo",
    name: "Solo",
    promise: "A focused home for independent work.",
    monthlyPrice: 12,
    yearlyPrice: 9,
    actionLabel: "Start solo",
    features: [
      { label: "3 active projects", included: true },
      { label: "Unlimited notes", included: true },
      { label: "Team permissions", included: false },
    ],
  },
  {
    id: "studio",
    name: "Studio",
    promise: "Keep a small team moving together.",
    monthlyPrice: 28,
    yearlyPrice: 21,
    highlighted: true,
    actionLabel: "Start your studio",
    features: [
      { label: "Unlimited projects", included: true },
      { label: "Unlimited notes", included: true },
      { label: "Team permissions", included: true },
    ],
  },
];
export default function PricingDefault() {
  const [message, setMessage] = React.useState("");
  return (
    <div className="grid w-full gap-4">
      <PricingTable
        plans={studioPlans}
        saving="Save 25% with yearly billing"
        onChoose={(plan, interval) =>
          setMessage(`${plan.name} selected · ${interval} billing`)
        }
      />
      <p role="status" className="text-center text-sm text-muted-foreground">
        {message}
      </p>
    </div>
  );
}
```

API
- `PricingTable`: Plan selection with a clearly stated saving and monthly-equivalent yearly prices.
  - `plans` (`PricingPlan[]`): id, name, promise, monthlyPrice, yearlyPrice, features, actionLabel, optional highlighted and href. Yearly price is the monthly equivalent.
  - `saving` (`string`): A truthful saving stated in words, supplied by the app.
  - `interval / defaultInterval / onIntervalChange` (`"monthly" | "yearly" / callback`, default "monthly"): Controlled or local billing interval.
  - `onChoose` (`(plan, interval) => void`): Runs for a plan button. A plan with href uses a link instead.
  - `currency` (`string`, default "USD"): Currency shared by all plans.
- Variant `variant`: cards, comparison (default cards)

Rules
- Colors, radii, shadows and motion come from Nook tokens and classes such as `bg-primary`, `text-muted-foreground`, `border-border`, `rounded-lg` and `h-control`. Never hard-code them.
- Do not restyle or simplify the file. Change how it looks through `className`, its props and the theme.
- It must keep working with the keyboard, in light and dark mode, and in the sharp, soft and bold styles.
- Accessibility: Native radio buttons support arrow-key billing selection. Every check or dash has an Included or Not included text alternative. Comparison cells have column and row headers.

Done when the component renders like the example in light and dark mode and the project type-checks.

Usage

"use client";

import * as React from "react";
import { PricingTable, type PricingPlan } from "@/components/ui/pricing-table";

export const studioPlans: PricingPlan[] = [
  {
    id: "solo",
    name: "Solo",
    promise: "A focused home for independent work.",
    monthlyPrice: 12,
    yearlyPrice: 9,
    actionLabel: "Start solo",
    features: [
      { label: "3 active projects", included: true },
      { label: "Unlimited notes", included: true },
      { label: "Team permissions", included: false },
    ],
  },
  {
    id: "studio",
    name: "Studio",
    promise: "Keep a small team moving together.",
    monthlyPrice: 28,
    yearlyPrice: 21,
    highlighted: true,
    actionLabel: "Start your studio",
    features: [
      { label: "Unlimited projects", included: true },
      { label: "Unlimited notes", included: true },
      { label: "Team permissions", included: true },
    ],
  },
];
export default function PricingDefault() {
  const [message, setMessage] = React.useState("");
  return (
    <div className="grid w-full gap-4">
      <PricingTable
        plans={studioPlans}
        saving="Save 25% with yearly billing"
        onChoose={(plan, interval) =>
          setMessage(`${plan.name} selected · ${interval} billing`)
        }
      />
      <p role="status" className="text-center text-sm text-muted-foreground">
        {message}
      </p>
    </div>
  );
}

Examples

Compare every feature

Billing interval

Save 25% with yearly billing

Compare plans and included features
FeaturesSolo$9.00 / month

Billed yearly

A focused home for independent work.

Start solo: Solo
StudioRecommended$21.00 / month

Billed yearly

Keep a small team moving together.

Start your studio: Studio
3 active projectsIncludedNot included
Unlimited notesIncludedIncluded
Team permissionsNot includedIncluded
Client guest accessNot includedIncluded
Version historyIncludedIncluded
Priority supportNot includedIncluded
Unlimited projectsNot includedIncluded

Yearly by default

Billing interval

Save 20% with yearly billing

Free

$0.00 / month

Billed yearly

Try it on a side project.

  • Included1 project
  • IncludedCommunity support
  • Not includedCustom domain

Pro

Recommended
$15.00 / month

Billed yearly

For people who ship every week.

  • IncludedUnlimited projects
  • IncludedEmail support
  • IncludedCustom domain

Three plans in euro

Billing interval

Two months free on yearly plans

Team

€39.00 / month

Billed monthly

Up to 10 people.

  • IncludedShared workspace
  • Not includedSSO

Business

Recommended
€99.00 / month

Billed monthly

Security and control for larger teams.

  • IncludedShared workspace
  • IncludedSSO

Enterprise

€249.00 / month

Billed monthly

Talk to us about your needs.

  • IncludedShared workspace
  • IncludedSSO

Variants

Defined in one place with cva, at the top of the component file.

  • variant

    cards (default)comparison

Props

PricingTable

Plan selection with a clearly stated saving and monthly-equivalent yearly prices.

PropTypeDefaultDescription
plansPricingPlan[]–id, name, promise, monthlyPrice, yearlyPrice, features, actionLabel, optional highlighted and href. Yearly price is the monthly equivalent.
savingstring–A truthful saving stated in words, supplied by the app.
interval / defaultInterval / onIntervalChange"monthly" | "yearly" / callback"monthly"Controlled or local billing interval.
onChoose(plan, interval) => void–Runs for a plan button. A plan with href uses a link instead.
currencystring"USD"Currency shared by all plans.

Accessibility

Native radio buttons support arrow-key billing selection. Every check or dash has an Included or Not included text alternative. Comparison cells have column and row headers.

Checked against WCAG 2.1 AA with automated axe tests and keyboard tests on every release.