Krizaka
Documentation

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.

WebBêtaModèles

Web uniquement — React, depuis @krizaka/ui/pricing-page. Bêta : son API peut encore changer à une version mineure.

Quand l’utiliser

  • Pricing, credits, plans.
  • Any choice between offers.

Quand ne pas l’utiliser

  • For the credits left inside an app.À la place : Meter
  • For a product's overview.À la place : Product page

Installation

Installer

npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcss

Styles

@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";

Importer

import { PricingPage } from "@krizaka/ui/pricing-page";

Exemples

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 chosen

    CA$29per month · 12,000 credits

    • Packs & Studios
    • Shared workspaces
  • Sovereign

    Customon your servers

    • Installed with you
    • A named engineer
Compare the plans
CommunityWorkspaceSovereign
Local models✓✓✓
Shared workspaces—✓✓
SupportCommunityEmailNamed 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?
Nothing breaks: requests wait until the next month or a top-up.
Do credits expire?
Unused credits roll over for one month.

Props

A pricing page: plans (the featured one lifted), the comparison, credits, the questions.

PropTypeDéfautDescription
plansrequisreadonly PricingPlan[]—The plans.
plansLabelrequisstring—The plans' accessible name (Plans).
titlerequisReactNode—The page's h1.
brandstring—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.
eyebrowReactNode—A mono line above the title.
faq{ title: ReactNode; items: readonly { question: ReactNode; answer: ReactNode; }[]; }—The questions, folded.
leadReactNode—One sentence under it.
toolbarReactNode—Above the plans: a period switch (monthly · yearly), a currency.

Accessibilité

  • The plans are a named list; the comparison a table with a caption and header cells.
  • Questions are native disclosures.

Bonnes pratiques

  • 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).

Générée depuis le code de @krizaka/ui 2.10.0 : son meta.ts, ses exemples et ses types.Modifier cette documentation sur GitHub

Sur cette page