A monthly and yearly switch for pricing pages, with the plan price updating.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { BillingToggle, PlanPrice, type BillingPeriod } from "@/components/ui/notchset/billing-toggle";
export function TeamPlanPrice() {
const [period, setPeriod] = React.useState<BillingPeriod>("yearly");
return (
<div className="grid gap-4">
<BillingToggle value={period} onValueChange={setPeriod} />
<PlanPrice monthly={99} yearly={79} period={period} />
</div>
);
}value / onValueChange–
"monthly" | "yearly"Controlled.
labels–
{ monthly, yearly, save, saving, switch }The words.
PlanPrice–
{ monthly, yearly, period, index?, unit? }A plan's rolling price; index staggers rows.
BillingToggledata-slot="billing-toggle"
The control.
PlanPricedata-slot="plan-price"
A price.
components/ui/notchset/billing-toggle.tsx
pnpm dlx shadcn@latest add https://notchset.dev/r/billing-toggle.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/radix-nova/billing-toggle.jsonFree, no account or key. Use the command for your project's primitives: a radix-*, new-york or default style in components.json is Radix, a base-* style is Base UI. With the @notchset registry added, @notchset/<name> picks for you.
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v1.0.0 · 2026-10-02
First release