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/aDesktop · n/aBetaTemplates
Support level
Beta
Size
1.1 kB gzip, budget 1.0 kB
Who uses it
2 files of the live products and sites import it (Folioviv: 1, Sovkora: 1) Counted in the dated inventory of 2026-11-23.
import { DocsHubPage } from "@krizaka/ui/docs-hub-page";

Web only — React, from @krizaka/ui/docs-hub-page. Beta: its API may still change in a minor version.

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

Why it is here. Used by Sovkora.

When to use

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

When not to use

Installation

Install

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

Styles

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

Import

import { DocsHubPage } from "@krizaka/ui/docs-hub-page";

Examples

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.

PropTypeDefaultDescription
collectionsrequiredreadonly DocsCollection[]—The collections, each in its brand.
collectionsTitlerequiredReactNode—The collections' heading.
titlerequiredReactNode—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).

Accessibility

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

Best practices

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

Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub

On this page