About
A flex layout container that arranges PDF document content vertically or horizontally with consistent spacing, alignment and wrapping, used to compose PDF pages built with React.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds PDF Stack to your project and fits it to your theme.
Code
How PDF Stack is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import Stack from "@/components/ui/stack";
const itemStyle = {
padding: "8px 16px",
borderRadius: 6,
background: "#f4f4f5",
fontSize: 14,
color: "#18181b",
};
export default function StackDemo() {
return (
<div className="flex w-full items-center justify-center bg-background p-10">
<Stack
gap="md"
style={{
padding: 24,
borderRadius: 8,
border: "1px solid #e4e4e7",
background: "#ffffff",
}}
>
<span style={itemStyle}>One</span>
<span style={itemStyle}>Two</span>
<span style={itemStyle}>Three</span>
</Stack>
</div>
);
}








