Docs/Heading
primitives@pdfcn-vue/heading

Heading

Document headings H1–H6 sized from the theme heading scale.

Installation

Terminal

npx shadcn-vue@latest add @pdfcn-vue/heading

Usage

Example

<Heading :level="2">Quarterly summary</Heading>
<Heading :level="3" tracking="tight">Revenue</Heading>

Props

PropTypeDefaultDescription
level1 | 2 | 3 | 4 | 5 | 61Semantic heading level and type scale key.
align'left' | 'center' | 'right'—Heading alignment.
colorstring—Theme color key or hex.
transform'uppercase' | 'lowercase' | 'capitalize'—Text transform.
weight'normal' | 'medium' | 'semibold' | 'bold''bold'Font weight.
tracking'tighter' | 'tight' | 'normal' | 'wide' | 'wider''normal'Letter-spacing scale.
noMarginbooleanfalseRemove vertical margins.
styleStyle—Merged Forme style override.

Live preview

The gallery uses a shared document. Change its theme in the theme builder to compare tokens.

Heading in a document
Rendered with Forme in your browser.
Browser render

Rendering the PDF…

Vue SFC → Uint8Array

Source files

Registry paths
Files installed under components/pdf.
  • forme/components/Heading.vue

Edit the theme tokens

Try the theme builder