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

List

Ordered and unordered lists.

Takumi Forme
Rendering PDF…

Installation

$ pnpm dlx shadcn@latest add @angular-pdfcn/forme/list

Usage

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

import { PdfList } from "@/components/pdf/list/list";
import type { ListItem } from "@/components/pdf/list/list.types";
import {
  FormeDocument,
  FormePage,
} from "@/lib/pdf-primitives";

@Component({
  imports: [FormeDocument, FormePage, PdfList],
  template: `
    <forme-document>
      <forme-page size="A4" [margin]="40">
        <pdf-list variant="bullet" [items]="items" />
      </forme-page>
    </forme-document>
  `,
})
export class ListDemo {
  protected readonly items: ListItem[] = [
    {
      description: "Match all components to the design specification.",
      text: "Design system alignment",
    },
    {
      description: "Build PDF-native components for both renderer bases.",
      text: "Component implementation",
    },
    {
      description: "Cover all variants and edge cases.",
      text: "Write unit tests",
    },
  ];
}

Variants

<pdf-list variant="numbered" [items]="items" />
<pdf-list variant="checklist" [items]="checklistItems" gap="md" />

API Reference

PdfList

Input Type Default
items ListItem[] -
variant 'bullet' | 'numbered' | 'checklist' | 'icon' | 'multi-level' | 'descriptive' 'bullet'
gap 'xs' | 'sm' | 'md' 'sm'
noWrap boolean false
style Style -