Installation
$ pnpm dlx shadcn@latest add @pdfcn/forme/list
Usage
import { PdfList } from "@/components/pdf/list";<PdfList items={[{ text: "Alpha" }, { text: "Beta" }]} />Variants
<PdfList variant="numbered" items={items} />
<PdfList variant="checklist" items={checklistItems} gap="md" />API Reference
PdfList
| Prop | Type | Default |
|---|---|---|
items | ListItem[] | - |
variant | 'bullet' | 'numbered' | 'checklist' | 'icon' | 'multi-level' | 'descriptive' | 'bullet' |
gap | 'xs' | 'sm' | 'md' | 'sm' |
noWrap | boolean | false |
style | Style | - |