---
title: "Heading"
description: "Headings with anchor links, so readers can link to any section of a page."
url: https://docscn.dev/docs/components/heading
lastModified: 2026-10-09T09:13:37.000Z
---

# Heading (/docs/components/heading)

> Headings with anchor links, so readers can link to any section of a page.

## Installation [#installation]

```npm
npx shadcn@latest add @docscn/heading
```

## Usage [#usage]

`defaultMdxComponents` renders `h1`–`h6` with `Heading`. A heading with an `id` (Fumadocs MDX adds one to every heading) links to itself, and shows a button on hover that copies the link to the section.

```tsx
import { Heading } from "@/components/docs/components/heading";

<Heading as="h2" id="installation">
  Installation
</Heading>;
```