Content, policy document


Install
npx shadcn add @klarhimmel/content-legalDetailsAbout, usage, props and more
A policy or terms page: title and last-updated line, a sticky contents list that jumps to numbered sections (plain anchors, no script), and the sections themselves.
Import
Import
- content/legal
- Category
- Long-form text and timelines for about and policy pages. New project? Set it up once: /get-started/installation.
Notes
When to use it
A policy or terms page with a sticky contents list that jumps to numbered sections. For an ordinary article or about page without the contents list, content-prose is the simpler choice.
Writing for it
- Section titles are required and hold 80 characters. They become both the contents entries and the numbered h2 headings, so write them to make sense in a short list. - Each body holds 1200 characters in a single block of text, so split a long clause into its own section instead of cramming it in. - Fill the updated line (60 characters) with the date as the reader should see it, such as 'Last updated 3 March 2026'. The contents label (40 characters) is the small caption over the list.
Watch out for
The page title is drawn as the h1 here, not an h2, because a policy page usually has no hero. If a hero above it already carries the h1, set the headingLevel of this block to 2 so the page has only one.
Pairs well with
Usage
The block in a page, with its default content (long lists shortened). Every prop is in the table below.
Props
The type, default and text limit of every prop. On a real page, over-limit text is kept and checkSections flags it (Installation, Check a page before you ship); this live preview shows the default until it fits. The panel above edits all props.
| Prop | Type | Default | Description |
|---|---|---|---|
eyebrow | string | 'Name the kind' | Text, up to 60 characters. |
title | string | 'Name the document' | Text, up to 100 characters. |
updated | string | 'Last updated 0 Month 0000' | Text, up to 60 characters. |
intro | string | 'Say what this document covers, who …' | Text, up to 500 characters. |
contentsLabel | string | 'On this page' | Text, up to 40 characters. |
sections | { title, body }[] | 5 items | List of 2 to 8. Each item: title, body. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |