Installation
$ pnpm dlx shadcn@latest add @pdfcn/forme/page-header
Usage
import { PageHeader } from "@/components/pdf/page-header";<PageHeader title="Company" subtitle="Invoice" />API Reference
PageHeader
| Prop | Type | Default |
|---|---|---|
title | string | - |
subtitle | string | - |
rightText | string | - |
rightSubText | string | - |
variant | 'simple' | 'centered' | 'minimal' | 'branded' | 'logo-left' | 'logo-right' | 'two-column' | 'simple' |
background | string | - |
titleColor | string | - |
marginBottom | number | - |
address | string | - |
phone | string | - |
email | string | - |
logo | ReactNode | - |
fixed | boolean | false |
noWrap | boolean | true |