Installation
$ pnpm dlx shadcn@latest add @pdfcn/takumi/heading
Usage
import { Heading } from "@/components/pdf/heading";<Heading level={1}>Heading</Heading>API Reference
Heading
| Prop | Type | Default |
|---|---|---|
level | 1 | 2 | 3 | 4 | 5 | 6 | 1 |
align | 'left' | 'center' | 'right' | 'left' |
color | string | - |
transform | 'uppercase' | 'lowercase' | 'capitalize' | - |
weight | 'normal' | 'medium' | 'semibold' | 'bold' | 'bold' |
tracking | 'tighter' | 'tight' | 'normal' | 'wide' | 'wider' | 'normal' |
noMargin | boolean | false |
keepWithNext | boolean | - |