Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button, badge dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/credits-pay-as-you-go.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/pricing/pricing15.tsx instead.
Usage
The file also exports pricing15Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Pricing15, pricing15Demo } from "@/components/blocks/pricing/pricing15"; export default function Page() { return <Pricing15 {...pricing15Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | ReactNode | none | Main section headline. |
| description | string | undefined | Supporting subtext below the heading. |
| bundles | Pricing15Bundle[] | none | Credit bundle tiers to render. |
| usageExamples | string[] | [] | Short bullet list of what a credit is used for; the explainer panel only renders when this is non-empty. |
| usageHeading | string | "What's a credit?" | Heading for the usage-explainer panel. |
| className | string | none | Extra classes for the outer section element. |
Types
type Pricing15Bundle = { credits: string; price: string; perUnit?: string; highlighted?: boolean; badgeLabel?: string; cta: { label: string; href?: string }; };
Behavior notes
- This block is fully static presentation, there is no real credit balance, purchase flow, or usage metering behind it.
- The usage-explainer panel only renders when `usageExamples` is supplied, matching the optional-section pattern used elsewhere in this category.
- All CTA buttons are inert placeholders (href defaults to "#" in the demo) with no real checkout wired up.
More Pricing Blocks
View all →Three Tier Cards
Classic three-column pricing cards with one plan visually highlighted as the recommended choice.
Monthly/Yearly Toggle
Three-tier pricing cards with a real billing-period toggle that switches every displayed price.
Single Plan Highlight
One centered, larger card for a single plan with a big price, full feature list, and a primary CTA.
Comparison Table
A full feature-matrix table comparing 3-4 plan tiers row by row, with a horizontal scroll fallback on mobile.
Enterprise Contact Card
A standard self-serve plan card next to a distinctly-styled Enterprise card with custom-quote messaging.
Pricing With Testimonial
Pricing cards paired with a single customer quote block for social proof, side by side on large screens.