Krizaka UI
Krizaka UI

Docs hub page

The entry of a documentation: the search in the middle of the hero, the collections each in its product's brand with their quick links, quick starts beside the most read pages, what is new, the owl's promise.

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

Web uniquement — React, depuis @krizaka/ui/docs-hub-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

  • The home of a documentation with several collections.
  • A help centre's entry.

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 { DocsHubPage } from "@krizaka/ui/docs-hub-page";

Exemples

krizaka.com/docs

The five collections, a quick start, the most read pages, what is new.

Props

A documentation hub: search first, the collections in their brand, quick starts, popular and new pages.

PropTypeDéfautDescription
collectionsrequisreadonly DocsCollection[]—The collections, each in its brand.
collectionsTitlerequisReactNode—The collections' heading.
titlerequisReactNode—The page's h1.
eyebrowReactNode—A mono line above the title.
leadReactNode—One sentence under it.
linkAsLinkComponent—The app's link component (Next's Link) for internal addresses.
linksLayout"wrap" | "stack"wrapHow a collection's quick links sit: wrap (pills in a row that wraps) or stack (one pill per line, so the first link of every card starts at the same height).
popular{ title: ReactNode; items: readonly DocsHubLink[]; }—The most read pages.
promise{ label: ReactNode; text: ReactNode; }—The owl's promise at the foot: what this documentation guarantees.
quickstarts{ title: ReactNode; children: ReactNode; }—The quick starts: a title and their samples (CodeBlocks, CodeTabs).
searchReactNode—The search, front and centre (a SearchField, a button that opens the command palette).
searchHintsReactNode—Under the search: what people look for (a few links or keys).
whatsNew{ title: ReactNode; items: readonly DocsHubLink[]; }—What is new (releases from the registries, published pages).

Accessibilité

  • One h1; each collection a list item with its main link and a named list of quick links.
  • The lists of pages are lists of links with their meta in words.

Bonnes pratiques

  • The search first: most readers come to find one page.
  • Each collection in its product's brand, with three or four quick links.
  • What is new comes from the registries, never typed by hand.
  • 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