# Docs, related links

- **[Sections](/blocks/)**
- **[Docs](/blocks/docs/)**
- **Docs, related links**

A titled row of link chips: the blocks a page uses, related components.

## Import

- **CLI**

  ```
  npx shadcn add @klarhimmel/docs-related
  ```
- **Import**

  ```
  import Block from '@/components/klarhimmel/blocks/docs-related';
  ```

Also called

- docs/related

- **Category**: Documentation sections: headers, install panels, props tables, previews. New project? Set it up once: /get-started/installation.

## Notes

- **When to use it**: A short row of link chips pointing to the blocks a page uses or to related components. Use `docs-pager` when you need ordered previous and next steps instead.
- **Writing for it**: - Each chip is one link with a label; the block takes 1 to 12 of them. Use the names a reader would search for.
- The title holds 60 characters and the description 200. A title such as Used in this page tells a reader what the chips have in common.
- Put the most closely related link first, since the row wraps and the later chips can end up on a second line.
- **Watch out for**: A chip with an empty label is not drawn, so clearing a label removes that link from the published page instead of leaving a blank pill.

## Pairs well with

- **[Docs, pager](/blocks/docs/pager)**
- **[Docs, examples](/blocks/docs/examples)**
- **[Docs, props table](/blocks/docs/props-table)**

## Usage

The block in a page, with its default content (long lists shortened). Every prop is in the table below.

section.tsx

```
import { Theme } from '@/components/klarhimmel/theme/style';
import { BlockSurface } from '@/components/klarhimmel/blocks/surface';
import DocsRelated from '@/components/klarhimmel/blocks/docs-related';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <DocsRelated props={{
          "title": "Name the related set",
          "description": "",
          "links": [
            {
              "label": "First link",
              "href": "#pricing-tiers"
            },
            {
              "label": "Second link",
              "href": "#pricing-comparison"
            },
            {
              "label": "Third link",
              "href": "#faq-accordion"
            },
            {
              "label": "Fourth link",
              "href": "#cta-banner"
            },
            {
              "label": "Fifth link",
              "href": "#header"
            },
            {
              "label": "Sixth link",
              "href": "#footer"
            }
          ]
        }} />
      </BlockSurface>
    </Theme>
  );
}
```

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

- **title**: Text, up to 60 characters.
- **description**: Text, up to 200 characters.
- **links**: List of 1 to 12.
- **headingLevel**: One of '1', '2'. Optional; empty is not rendered.

[Previous](/blocks/docs/props-table)

[Next](/blocks/docs/swatches)
