Krizaka UI
Krizaka UI

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.

Web · ✓Mobile · n/aBureau · n/aBêtaModèles
Niveau de support
Bêta
Taille
0.9 kB gzip, budget 0.7 kB
Qui l'utilise
Aucun produit en production ne l'importe encore Compté dans l'inventaire daté du 2026-11-23.
import { LongformPage } from "@krizaka/ui/longform-page";

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

  • Mobile · n/a. A whole page of a public site; a phone app's screens are built from Screen, Header and the native primitives.
  • Bureau · n/a. A public site's page, not a window of the Mac app.

Pourquoi il est là. krizaka.com migrating its pages to the specialised template (TPL): /story.

Quand l’utiliser

  • A company's story, a case study, an essay.
  • Any text read from the top, chapter by chapter.

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 { LongformPage } from "@krizaka/ui/longform-page";

Exemples

Our story

Krizaka's story in chapters, a pull quote and the flamingo's rule.

Case study

A customer's situation, what changed and the figures that prove it, in chapters.

Props

A long read: hero, then numbered chapters with pull quotes in the margin and figures that break out.

PropTypeDéfautDescription
chaptersrequisreadonly LongformChapter[]—The chapters, in order.
titlerequisReactNode—The page's h1.
asideReactNode—Beside the hero: the page's bird, an illustration.
back{ href: string; label: string; }—The way back.
brandstring—The brand the page wears (.brand-<id>).
eyebrowReactNode—A mono line above the title.
leadReactNode—The standfirst.
linkAsLinkComponent—The app's link component (Next's Link).

Accessibilité

  • Each chapter is a section named by its h2; the numbers are decorative.
  • The pull quote repeats the text: it adds nothing a reader would miss.

Bonnes pratiques

  • Chapters of three to six paragraphs; one pull quote at most each.
  • Figures carry a promise (a bird's quote, a schema), never decoration.
  • 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 5.3.4 : son meta.ts, ses exemples et ses types.Modifier cette documentation sur GitHub

Sur cette page