Heading
Headings with anchor links, so readers can link to any section of a page.
Installation
npx shadcn@latest add @docscn/headingUsage
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.
import { Heading } from "@/components/docs/components/heading";
<Heading as="h2" id="installation">
Installation
</Heading>;