Krizaka UI
Krizaka UI

Docs article page

A documentation article in the docs frame: the pages, the breadcrumb, the title with its facts, the reading column, the contents, previous and next.

Web · ✓Mobile · n/aBureau · n/aBêtaModèles
Niveau de support
Bêta
Taille
0.7 kB gzip, budget 0.6 kB
Qui l'utilise
3 fichiers des produits et sites en production l'importent (Verikora : 1, Folioviv : 1, Sovkora : 1) Compté dans l'inventaire daté du 2026-11-23.
import { DocsArticlePage } from "@krizaka/ui/docs-article-page";

Web uniquement — React, depuis @krizaka/ui/docs-article-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à. Used by Sovkora.

Quand l’utiliser

  • Guides, references, concepts.
  • Any page of a documentation with a list of pages.

Quand ne pas l’utiliser

  • For the documentation's entry.À la place : Docs hub page
  • For a component's generated 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 { DocsArticlePage } from "@krizaka/ui/docs-article-page";

Exemples

Sovkora's CLI

An article with its pages, breadcrumb, facts, contents and pager.

FAQ

Questions as disclosures, each with a short answer, the contents beside them.

Props

A documentation article: pages · breadcrumb, title, lead, facts, the reading column · contents; previous and next.

PropTypeDéfautDescription
sidebarrequisReactNode—The documentation's pages (a nav of links).
sidebarLabelrequisstring—On a phone, the words that open the pages.
titlerequisReactNode—The page's h1.
breadcrumbreadonly { href: string; label: string; }[]—Where the page sits: { href, label } from the hub down.
breadcrumbLabelstringBreadcrumbThe breadcrumb's accessible name (Breadcrumb).
factsreadonly Fact[]—Facts under the lead: updated on, reading time, the version it documents.
leadReactNode—One or two sentences under it.
linkAsLinkComponent—The app's link component (Next's Link).
pager{ previous?: { href: string; title: string; }; next?: { href: string; title: string; }; labels: { previous: string; next: string; }; } | undefined—The previous and next pages, and their labels.
toc{ label: string; items: readonly { id: string; label: string; }[]; }—The contents (its h2s): { id, label }, and its label (On this page).

Accessibilité

  • The breadcrumb is a named nav with an ordered list; previous and next a named nav.
  • On a phone the pages fold into a disclosure; the contents become chips.

Bonnes pratiques

  • Keep the reading column under 46rem; headings h2 with ids for the contents.
  • Say when the page was updated and how long it takes to read.
  • 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