For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any docs URL. An agent skill is available at /.well-known/agent-skills/site-skill.md.
0Sponsor

Stack

Vertical stack with spacing.

Takumi Forme
Rendering PDF…

Installation

$ pnpm dlx shadcn@latest add @angular-pdfcn/takumi/stack

Usage

import { Component } from "@angular/core";

import { PdfDivider } from "@/components/pdf/divider/divider";
import { PdfHeading } from "@/components/pdf/heading/heading";
import { PdfStack } from "@/components/pdf/stack/stack";
import { PdfText } from "@/components/pdf/text/text";
import { PdfcnThemeProvider } from "@/components/pdf/theme-provider";
import {
  TakumiDocument,
  TakumiPage,
} from "@/lib/pdf-primitives";

@Component({
  imports: [
    TakumiDocument,
    TakumiPage,
    PdfcnThemeProvider,
    PdfDivider,
    PdfHeading,
    PdfStack,
    PdfText,
  ],
  template: `
    <takumi-document>
      <takumi-page size="A4">
        <pdf-theme-provider>
          <pdf-stack gap="md">
            <pdf-heading [level]="2">Section</pdf-heading>
            <pdf-text>First paragraph in the stack.</pdf-text>
            <pdf-text>Second paragraph with consistent spacing.</pdf-text>
            <pdf-divider spacing="lg" />
            <pdf-stack gap="lg">
              <pdf-heading [level]="3">Wider gap</pdf-heading>
              <pdf-text
                >Content grouped with a larger vertical rhythm.</pdf-text
              >
            </pdf-stack>
          </pdf-stack>
        </pdf-theme-provider>
      </takumi-page>
    </takumi-document>
  `,
})
export class StackDemo {}

API Reference

PdfStack

Input Type Default
gap 'none' | 'sm' | 'md' | 'lg' | 'xl' 'md'
direction 'vertical' | 'horizontal' 'vertical'
align 'start' | 'center' | 'end' | 'stretch' 'start'
justify 'start' | 'center' | 'end' | 'between' | 'around' 'start'
wrap boolean false
noWrap boolean false