Heading

A heading whose rank in the outline and size are set apart.

View as Markdown

Billing

Upgrade to Pro

Unlimited projects, priority support and a 30-day history.

<Caption>Billing</Caption><Heading level={3} size={4}>  Upgrade to Pro</Heading><Text color="secondary">  Unlimited projects, priority support and a 30-day history.</Text>

Installation

$ npx shadcn@latest add @constella/heading

Usage

import { Heading } from "@/components/typography/heading";
<Heading level={2}>Settings</Heading>

Size

Use the level prop for the tag. The size follows it unless you set size, so a page can keep its outline and still pick how big each heading looks.

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5

Heading 6

<Heading level={3} size={1}>Heading 1</Heading><Heading level={3} size={6}>Heading 6</Heading>

API Reference

PropTypeDefault
level1 | 2 | 3 | 4 | 5 | 62
size1 | 2 | 3 | 4 | 5 | 6level
weight"regular" | "semimedium" | "medium" | "semibold""semibold"
coloras Text"primary"
renderReactElement | function<h{level}>
sxSx, applied last-