Two-plan pricing with a monthly/annual segmented control.
Install with the CLI, or add the packages and paste the source below.
Add Pricing to your app with its source-owned dependencies.
npx cooud-ui add pricing
Install the Cooud UI packages, then paste the block below.
Copy the source for Plan toggle. Every class is a semantic token, so it re-themes with your app.
import { Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@cooud-ui/ui";import { Check } from "lucide-react";export function PricingToggleBlock() {return (<section className="px-6 py-20"><div className="mx-auto max-w-2xl text-center"><Badge variant="secondary">Plans</Badge><h2 className="mt-4 font-display text-4xl font-semibold tracking-tight text-fg">Pick the pace that matches your team.</h2><div className="mx-auto mt-6 inline-flex rounded-full border border-border bg-surface-inset p-1"><Button variant="secondary" size="sm" className="rounded-full">Monthly</Button><Button variant="ghost" size="sm" className="rounded-full">Annual - save 20%</Button></div></div><div className="mx-auto mt-12 grid max-w-4xl grid-cols-[repeat(auto-fit,minmax(min(100%,18rem),1fr))] gap-6">{/* Map your plans here */}</div></section>);}