StorybookGitHub

Heading

A semantic heading with independent size, weight, and tone controls.

Heading

Heading

Heading

Heading

Heading

Heading

Heading

Installation

npx shadcn@latest add https://reactdocs.canceydejean.dev/r/heading.json

Usage

Use the heading for page titles, section headers, and any semantic h1h6 text. Set level for document outline semantics and size when the visual scale should differ from the default mapping.

import Heading from "@/components/heading/heading";

export function Example() {
  return (
    <Heading level="h1" size="2xl">
      Page title
    </Heading>
  );
}