Product page
A product's public page assembled from data only: the hero in layers of depth with the product moment, the one journey told while scrolling, the document the visitor touches, the scenes, the limits, the closing call and the footer. Its blocks carry no product name and no colour: the words, media and verdicts are data, the colour is the brand scope.
- Domain
- Page blocks & templates
- Support level
- Size
- 3.0 kB gzip, budget 2.6 kB
- Who uses it
- No live product imports it yet Counted in the dated inventory of 2026-11-23.
import { ProductPage, ProductHero, ProductActions, ProductMoment, FindingCard, CahierSheet, DocumentScene, DecisionStamp, SceneRow, SceneList, LimitsBand, ClosingBand, PublicFooter } from "@krizaka/ui/product-page";Web only — React, from @krizaka/ui/product-page. Beta: its API may still change in a minor version.
- Mobile · n/a. A whole page of a public site, read in a browser; a phone app shows the same proof as a screen built from Screen, Card and the native primitives, and the product's site opens in the browser.
- Desktop · n/a. A public site's page, not a window of the Mac app.
Why it is here. The public home of Verikora, Sovkora and Folioviv, each in its own ticket after the release (krizaka-internal#4693).
When to use
- The home of one product: the promise, the proof in five seconds, then the journey and the call.
- Any part alone: the hero, the scenes, the limits or the closing on a product's inner page.
When not to use
- For the home of a company or a product line.Use instead: Landing page
- For a price list.Use instead: Pricing page
Installation
Install
npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcssStyles
@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";Import
import { ProductPage, ProductHero, ProductActions, ProductMoment, FindingCard, CahierSheet, DocumentScene, DecisionStamp, SceneRow, SceneList, LimitsBand, ClosingBand, PublicFooter } from "@krizaka/ui/product-page";Examples
A fixture product
A whole page from one data object: hero, story, demo, scenes, limits, closing and footer.
Hero
The promise and its way in beside the product moment, in layers of depth over a still out of focus.
Scenes
One useful action per row, its recording beside a few words, alternating; the first enlarged on a phone.
Limits and closing
What the product does not do beside its bird, then the closing sentence and its one way in.
Stamp and footer
The neutral decision stamp in the brand's colour, and the public footer drawn from its data.
Props
ClosingBand
The closing: the brand's light rising again, one sentence, its last words underlined by the pen, the one way in.
| Prop | Type | Default | Description |
|---|---|---|---|
actionrequired | ReactNode | — | The one way in (ProductActions). |
titlerequired | string | — | The sentence before the inked words. |
inked | string | — | The words the pen underlines, at the end (on a lease.). |
DecisionStamp
| Prop | Type | Default | Description |
|---|---|---|---|
childrenrequired | ReactNode | — | The stamp's words (Decision noted). |
className | string | — | Classes of the stamp, merged last. |
DocumentScene
The scene of a StoryScroll about a document: it arrives, is read, a line lights up, its reference attaches, you decide.
| Prop | Type | Default | Description |
|---|---|---|---|
decisionrequired | { title: string; primary: string; secondary: string; stamp: string; } | — | The decision (cue: "decide"): the finding, the two choices, the stamp's words. |
linesrequired | readonly SheetLine[] | — | The document's lines; the flagged one lights up (cue: "light"). |
referencerequired | string | — | The reference the flagged line attaches to (cue: "attach"). |
FindingCard
| Prop | Type | Default | Description |
|---|---|---|---|
findingrequired | ProductFinding | — | What the product found: its verdict (the product's words), the finding, its reference. |
LimitsBand
What the product does not do: a ruled list beside the bird as a specimen. Trust before the call.
| Prop | Type | Default | Description |
|---|---|---|---|
itemsrequired | readonly string[] | — | One to three limits, each a short sentence. |
titlerequired | string | — | What it does not do: the band's h2. |
bird | "falcon" | "owl" | "duck" | "flamingo" | "pigeon" | "lovebird" | "crane" | "magpie" | "beaver" | — | The product's bird, drawn as a specimen beside the list. |
caption | ReactNode | — | The specimen's caption: Fig. 1 · the owl, reads what you give it. |
ProductActions
| Prop | Type | Default | Description |
|---|---|---|---|
primaryrequired | ProductLink | — | The main way in: filled, its arrow. |
secondary | ProductLink | — | The quiet way in: a link with the pen's underline. |
ProductHero
The hero in layers of depth: a still far behind, the grid under the brand's light, the moment, a § nearest the eye.
| Prop | Type | Default | Description |
|---|---|---|---|
titlerequired | ReactNode | — | The promise: the page's h1 (at most eight words). |
actions | ReactNode | — | The way in (ProductActions). |
backdrop | string | — | A still of the product, far behind and out of focus (an image address). |
lead | ReactNode | — | How, in one line. |
mark | ReactNode | § | The glyph nearest the eye, out of focus. |
visual | ReactNode | — | The product moment beside the words (ProductMoment). Absent: one column. |
ProductMoment
A tilted Cahier document, read line by line, and the finding that leaves it. On a phone: the lines around the finding.
| Prop | Type | Default | Description |
|---|---|---|---|
answerrequired | ReactNode | — | What leaves the page towards the visitor (FindingCard). |
labelrequired | string | — | The figure's accessible name (A lease, read, one clause found). |
linesrequired | readonly SheetLine[] | — | The document's lines, read in turn; the flagged one is the finding's. |
id | string | — | The figure's id: the anchor a menu points to. |
tag | ReactNode | — | A tag on the paper (Fictional lease). |
PublicFooter
The public footer, drawn from data (config: the columns, the legal line, the socials) with the pen's underline on its links.
| Prop | Type | Default | Description |
|---|---|---|---|
currentrequired | SiteId | — | The site this footer belongs to (@krizaka/ui/sites): marked in the family, its address for path. |
children | ReactNode | — | The site's own link groups (SiteFooter.Column), on the first line. |
config | SiteFooterConfig | — | The footer as the admin configured it (resolveFooterSettings of the app's settings): its columns, then one legal
line — legalName · NEQ … · city, the version when showVersion, the legal links, the socials. With it the family
is not drawn (the columns hold what the site wants) and the org's signature gives way to the legal identity. |
controls | ReactNode | — | The host's controls at the end of the last line: the language switch, the theme toggle. |
env | string | — | The environment, when it is not production (DEV). |
family | boolean | current === "krizaka" (and never in `variant="app"`) | Shows the family on the second line, folded on a phone. The links to the other sites live on krizaka.com only (founder rule, 2026-10-30): every other site and its documentation opts in on purpose, none by default. |
groups | readonly SiteGroup[] | — | Only these groups of the family, in reading order (footerFor(id).groups of @krizaka/org). Omit it to draw them all. |
labels | FamilyLabels | familyLabels.en | The family's words, passed translated: familyLabels.fr from @krizaka/ui/sites, or your own of the same shape. |
legal | ReactNode | — | The legal links, when not the org's (SiteFooter.Links). |
linkAs | LinkComponent | a | The app's router link for the config's internal links (Next's Link). |
madeWith | ReactNode | — | variant="hosted": the platform's signature at the end of the line (« Page faite avec Folioviv · Comment cette page est faite »), as SiteFooter.Links. Passed translated. |
org | OrgFacts | — | The organisation's public facts (org of @krizaka/org) — pass them on every site. The names and addresses of the
family are then org.family, the signature is org.footer.line (« Une entreprise de Technologies Krizaka · Fait à
Montréal », the same everywhere) and, without legal, the legal links are org.footer.legal. |
path | string | — | The path of the page being read on this site (/en/story, /blog/…): the company link that points to this very
page says so (aria-current="page") and a click on it scrolls to the top instead of reloading. |
products | readonly SiteId[] | — | Only these products in the Products group (the current site always kept). Omit it to list every product. |
rows | ReactNode | — | Replaces the bottom line with these rows (FamilyFooter's rows B to E); the family and the site's own links stay above. |
tone | Tone | product | cahier on the Cahier sites (www, blog, ui., java., ts., lab.), product in the products. |
variant | "docs" | "app" | "site" | "hosted" | site | site — every public site. docs — the same under documentation, on its width. app — inside a signed-in product:
the last line only; render it once, in the layout. hosted — the footer of a page a platform hosts for its customer
(a shop on Folioviv): one line, the customer's legal links then madeWith; no family, no signature, no version. |
version | string | — | The version the site runs (1.2.3, shown v1.2.3). |
SceneList
| Prop | Type | Default | Description |
|---|---|---|---|
scenesrequired | readonly ProductScene[] | — | The scenes, in reading order. |
id | string | — | The list's id: the anchor a menu points to. |
labels | LoopLabels | — | The loops' pause / play words, passed translated. |
SceneRow
A scene as a row: the words and the recording side by side (alternating), numbered in the margin, the tint shifting.
| Prop | Type | Default | Description |
|---|---|---|---|
indexrequired | number | — | Its place in the list, from 0: its § number, its side and its tint. |
scenerequired | ProductScene | — | The scene: its words, its device and its recording. |
labels | LoopLabels | — | The loop's pause / play words, passed translated. |
CahierSheet
A document's page on paper, its lines numbered in the red margin.
| Prop | Type | Default | Description |
|---|---|---|---|
linesrequired | readonly SheetLine[] | — | The document's lines, in order; the flagged one keeps the pen's mark. |
className | string | — | Classes of the paper, merged last. |
reading | boolean | — | The reading beam passes over each line, then the pen marks the flagged one. |
renderLine | ((line: SheetLine, index: number) => ReactNode) | — | Draws a line as something else (a button): the host's control, inside the line's §. |
tag | ReactNode | — | A tag on the paper's edge (Fictional lease). |
ProductPage
A product's public page from its data: hero, story, demo, scenes, limits, closing, footer — each part only when given.
| Prop | Type | Default | Description |
|---|---|---|---|
datarequired | ProductPageData | — | Everything the page shows: the words, the media and the verdicts of the product, in the reader's language. |
Accessibility
- The hero's title is the page's only
h1; each scene, the story's steps, the demo, the limits and the closing areh2. - The moment is a named
figure; the story's scene is decorative (aria-hidden), its steps real text. - Each loop has a visible pause; under reduced motion or Save-Data the still stays alone.
- The device's tilt straightens on hover and on focus alike.
Best practices
- Give data, not markup:
ProductPage'sdataholds every word (title ≤ 8 words, lead ≤ 14, a scene's title ≤ 4) and every verdict label (To check) as the product says it. - Set the colour with
brand(the.brand-<id>scope of @krizaka/tokens), never a colour in the data. - The moment's lines and findings come from a recorded run of the product, never typed for the page.
- One way in, said twice: the hero's main action and the closing's are the same.
- The decision stamp is neutral (
Decision noted) in the brand's colour: no signature. - Motion follows the tiers of
@krizaka/ui/motion-tier: full, light on a weak device, still under reduced motion with the final state shown.
Related components
Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub
