Docs/Stack
layout@pdfcn-vue/stack

Stack

Flex stack with theme gap scale for vertical or horizontal layout.

Installation

Terminal

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

Usage

Example

<Stack gap="lg">
  <Heading :level="3">Details</Heading>
  <Text>Aligned content</Text>
</Stack>

Props

PropTypeDefaultDescription
gap'none' | 'sm' | 'md' | 'lg' | 'xl''md'Gap from primitive spacing scale.
direction'vertical' | 'horizontal''vertical'Flex direction.
align'start' | 'center' | 'end' | 'stretch'—Cross-axis alignment.
justify'start' | 'center' | 'end' | 'between' | 'around'—Main-axis alignment.
wrapbooleanfalseAllow flex wrap.
noWrapbooleanfalseKeep the stack on one page when possible.
styleStyle—Merged Forme style override.

Live preview

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

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

Edit the theme tokens

Try the theme builder