Docs/Section
layout@pdfcn-vue/section

Section

Titled section container with theme section spacing.

Installation

Terminal

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

Usage

Example

<Section title="Line items">
  <Table>…</Table>
</Section>

Props

PropTypeDefaultDescription
titlestring—Optional section title.
descriptionstring—Optional supporting line under the title.
spacing'compact' | 'default' | 'relaxed''default'Vertical rhythm around the section.

Live preview

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

Section 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/Section.vue

Edit the theme tokens

Try the theme builder