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.
- Domaine
- Blocs de page et gabarits
- Niveau de support
- Taille
- 0.5 kB gzip, budget 0.5 kB
- Qui l'utilise
- 1 fichiers des produits et sites en production l'importent (krizaka.com : 1) Compté dans l'inventaire daté du 2026-11-23.
import { LegalPage } from "@krizaka/ui/legal-page";Web uniquement — React, depuis @krizaka/ui/legal-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 krizaka.com.
Quand l’utiliser
- Privacy, terms, cookies, a licence.
- Any document read section by section.
Quand ne pas l’utiliser
- For a long read with chapters.À la place : Longform page
- For a documentation article.À la place : Docs article page
Installation
Installer
npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcssStyles
@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";Importer
import { LegalPage } from "@krizaka/ui/legal-page";Exemples
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.
| Prop | Type | Défaut | Description |
|---|---|---|---|
sectionsrequis | readonly LegalSection[] | — | The sections. |
titlerequis | ReactNode | — | The page's h1 (Privacy policy). |
tocLabelrequis | string | — | The contents' label (On this page). |
back | { href: string; label: string; } | — | The way back. |
linkAs | LinkComponent | — | The app's link component (Next's Link). |
summary | ReactNode | — | The short version, in plain words, before the sections. |
updated | ReactNode | — | In force since (Last updated: October 2026). |
Accessibilité
- Sections are named by their
h2; the contents a namednav. - The summary is plain text, read first.
Bonnes pratiques
- 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).
Composants liés
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