Pricing page
Plans and what they cost: the plans side by side with the featured one lifted, the comparison as a table, what a credit buys, the questions people ask.
Web only — React, from @krizaka/ui/pricing-page. Beta: its API may still change in a minor version.
When to use
- Pricing, credits, plans.
- Any choice between offers.
When not to use
- For the credits left inside an app.Use instead: Meter
- For a product's overview.Use instead: Product page
Installation
Install
npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcssStyles
@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";Import
import { PricingPage } from "@krizaka/ui/pricing-page";Examples
Orazaka plans and credits
Three plans, the comparison, credits and two questions.
Pricing
Pay once for what was done
Credits buy answers, images and minutes of video — never a seat you do not use.
Community
Freeself-hosted
- Every feature
- Your hardware
Workspace
Most chosenCA$29per month · 12,000 credits
- Packs & Studios
- Shared workspaces
Sovereign
Customon your servers
- Installed with you
- A named engineer
| Community | Workspace | Sovereign | |
|---|---|---|---|
| Local models | ✓ | ✓ | ✓ |
| Shared workspaces | — | ✓ | ✓ |
| Support | Community | Named engineer |
What a credit buys
1 credit ≈ a chat answer · 4 an image · 30 a minute of video.
Questions
What happens when credits run out?
Do credits expire?
Props
A pricing page: plans (the featured one lifted), the comparison, credits, the questions.
| Prop | Type | Default | Description |
|---|---|---|---|
plansrequired | readonly PricingPlan[] | — | The plans. |
plansLabelrequired | string | — | The plans' accessible name (Plans). |
titlerequired | ReactNode | — | The page's h1. |
brand | string | — | The brand the page wears (.brand-<id>). |
compare | { caption: ReactNode; columns: readonly ReactNode[]; rows: readonly { feature: ReactNode; cells: readonly ReactNode[]; }[]; } | — | The comparison: its caption, columns (the plans' names) and rows (a feature and a cell per plan). |
credits | { title: ReactNode; children: ReactNode; } | — | What a credit buys, the credits left: a Meter, a sentence. |
eyebrow | ReactNode | — | A mono line above the title. |
faq | { title: ReactNode; items: readonly { question: ReactNode; answer: ReactNode; }[]; } | — | The questions, folded. |
lead | ReactNode | — | One sentence under it. |
toolbar | ReactNode | — | Above the plans: a period switch (monthly · yearly), a currency. |
Accessibility
- The plans are a named list; the comparison a table with a caption and header cells.
- Questions are native disclosures.
Best practices
- Three plans at most; the featured one says why (
Most chosen). - Say what a credit buys in units people know.
- Words and content arrive as props; the motion is the platform's (
[data-reveal], still under reduced motion).
Related components
Generated from the code of @krizaka/ui 2.10.0: its meta.ts, its examples and its types.Edit this documentation on GitHub
Longform page
A long read — a story, an essay, a case: numbered chapters in a reading column, pull quotes in the margin, figures that break out.
Product page
A product's overview in its brand: split hero with facts and the product alive, the traps it removes as compact argument cards, its decisions with their cost, the promise a bird keeps, the closing call.