Krizaka UI
Krizaka UI

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.

Web · ✓Mobile · n/aBureau · n/aBêtaModèles
Niveau de support
Bêta
Taille
3.0 kB gzip, budget 2.6 kB
Qui l'utilise
Aucun produit en production ne l'importe encore Compté dans l'inventaire daté du 2026-11-23.
import { ProductPage, ProductHero, ProductActions, ProductMoment, FindingCard, CahierSheet, DocumentScene, DecisionStamp, SceneRow, SceneList, LimitsBand, ClosingBand, PublicFooter } from "@krizaka/ui/product-page";

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

  • 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.
  • Bureau · n/a. A public site's page, not a window of the Mac app.

Pourquoi il est là. The public home of Verikora, Sovkora and Folioviv, each in its own ticket after the release (krizaka-internal#4693).

Quand l’utiliser

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

Quand ne pas l’utiliser

Installation

Installer

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

Styles

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

Importer

import { ProductPage, ProductHero, ProductActions, ProductMoment, FindingCard, CahierSheet, DocumentScene, DecisionStamp, SceneRow, SceneList, LimitsBand, ClosingBand, PublicFooter } from "@krizaka/ui/product-page";

Exemples

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.

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.

PropTypeDéfautDescription
actionrequisReactNode—The one way in (ProductActions).
titlerequisstring—The sentence before the inked words.
inkedstring—The words the pen underlines, at the end (on a lease.).

DecisionStamp

PropTypeDéfautDescription
childrenrequisReactNode—The stamp's words (Decision noted).
classNamestring—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.

PropTypeDéfautDescription
decisionrequis{ title: string; primary: string; secondary: string; stamp: string; }—The decision (cue: "decide"): the finding, the two choices, the stamp's words.
linesrequisreadonly SheetLine[]—The document's lines; the flagged one lights up (cue: "light").
referencerequisstring—The reference the flagged line attaches to (cue: "attach").

FindingCard

PropTypeDéfautDescription
findingrequisProductFinding—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.

PropTypeDéfautDescription
itemsrequisreadonly string[]—One to three limits, each a short sentence.
titlerequisstring—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.
captionReactNode—The specimen's caption: Fig. 1 · the owl, reads what you give it.

ProductActions

PropTypeDéfautDescription
primaryrequisProductLink—The main way in: filled, its arrow.
secondaryProductLink—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.

PropTypeDéfautDescription
titlerequisReactNode—The promise: the page's h1 (at most eight words).
actionsReactNode—The way in (ProductActions).
backdropstring—A still of the product, far behind and out of focus (an image address).
leadReactNode—How, in one line.
markReactNode§The glyph nearest the eye, out of focus.
visualReactNode—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.

PropTypeDéfautDescription
answerrequisReactNode—What leaves the page towards the visitor (FindingCard).
labelrequisstring—The figure's accessible name (A lease, read, one clause found).
linesrequisreadonly SheetLine[]—The document's lines, read in turn; the flagged one is the finding's.
idstring—The figure's id: the anchor a menu points to.
tagReactNode—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.

PropTypeDéfautDescription
currentrequisSiteId—The site this footer belongs to (@krizaka/ui/sites): marked in the family, its address for path.
childrenReactNode—The site's own link groups (SiteFooter.Column), on the first line.
configSiteFooterConfig—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.
controlsReactNode—The host's controls at the end of the last line: the language switch, the theme toggle.
envstring—The environment, when it is not production (DEV).
familybooleancurrent === "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.
groupsreadonly SiteGroup[]—Only these groups of the family, in reading order (footerFor(id).groups of @krizaka/org). Omit it to draw them all.
labelsFamilyLabelsfamilyLabels.enThe family's words, passed translated: familyLabels.fr from @krizaka/ui/sites, or your own of the same shape.
legalReactNode—The legal links, when not the org's (SiteFooter.Links).
linkAsLinkComponentaThe app's router link for the config's internal links (Next's Link).
madeWithReactNode—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.
orgOrgFacts—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.
pathstring—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.
productsreadonly SiteId[]—Only these products in the Products group (the current site always kept). Omit it to list every product.
rowsReactNode—Replaces the bottom line with these rows (FamilyFooter's rows B to E); the family and the site's own links stay above.
toneToneproductcahier on the Cahier sites (www, blog, ui., java., ts., lab.), product in the products.
variant"docs" | "app" | "site" | "hosted"sitesite — 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.
versionstring—The version the site runs (1.2.3, shown v1.2.3).

SceneList

PropTypeDéfautDescription
scenesrequisreadonly ProductScene[]—The scenes, in reading order.
idstring—The list's id: the anchor a menu points to.
labelsLoopLabels—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.

PropTypeDéfautDescription
indexrequisnumber—Its place in the list, from 0: its § number, its side and its tint.
scenerequisProductScene—The scene: its words, its device and its recording.
labelsLoopLabels—The loop's pause / play words, passed translated.

CahierSheet

A document's page on paper, its lines numbered in the red margin.

PropTypeDéfautDescription
linesrequisreadonly SheetLine[]—The document's lines, in order; the flagged one keeps the pen's mark.
classNamestring—Classes of the paper, merged last.
readingboolean—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 §.
tagReactNode—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.

PropTypeDéfautDescription
datarequisProductPageData—Everything the page shows: the words, the media and the verdicts of the product, in the reader's language.

Accessibilité

  • The hero's title is the page's only h1; each scene, the story's steps, the demo, the limits and the closing are h2.
  • 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.

Bonnes pratiques

  • Give data, not markup: ProductPage's data holds 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.

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

Sur cette page