Installation
$ pnpm dlx shadcn@latest add @pdfcn/takumi/stack
Usage
import { Stack } from "@/components/pdf/stack";
import { Text } from "@/components/pdf/text";<Stack gap="md">
<Text>One</Text>
<Text>Two</Text>
</Stack>API Reference
Stack
| Prop | 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 |