Krizaka UI
Krizaka UI

Legal page

A policy or terms: the date in force, the short version in plain words, the sections in a narrow column with their contents beside them.

Web · ✓Mobile · n/aDesktop · n/aBetaTemplates
Support level
Beta
Size
0.5 kB gzip, budget 0.5 kB
Who uses it
1 files of the live products and sites import it (krizaka.com: 1) Counted in the dated inventory of 2026-11-23.
import { LegalPage } from "@krizaka/ui/legal-page";

Web only — React, from @krizaka/ui/legal-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 krizaka.com.

When to use

  • Privacy, terms, cookies, a licence.
  • Any document read section by section.

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

Examples

Privacy policy

A summary and three sections with their contents.

Props

A legal page: hero with the date, a plain-words summary, the sections with their contents.

PropTypeDefaultDescription
sectionsrequiredreadonly LegalSection[]—The sections.
titlerequiredReactNode—The page's h1 (Privacy policy).
tocLabelrequiredstring—The contents' label (On this page).
back{ href: string; label: string; }—The way back.
linkAsLinkComponent—The app's link component (Next's Link).
summaryReactNode—The short version, in plain words, before the sections.
updatedReactNode—In force since (Last updated: October 2026).

Accessibility

  • Sections are named by their h2; the contents a named nav.
  • The summary is plain text, read first.

Best practices

  • Open with the short version in plain words.
  • Date the document; keep each section to one subject.
  • 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