Layout Primitives

Box, Container, Stack, Grid — thin wrappers that turn layout intent into Tailwind classes.

import{ Box, Container, Stack, Grid } from "@pepulux/ui"

Stack

Item 1
Item 2
Item 3

Grid

Col 1
Col 2-3 (span 2)
Col 1-3 (full width)

Container

Centered, max-width sm

Props

PropTypeDefaultDescription
Stack.direction"row" | "column" | "row-reverse" | "column-reverse""column"Flex direction
Stack.spacingnumber2Gap between children (Tailwind gap-N)
Grid.containerboolean—Makes this element the grid container
Grid.columnsnumber12Total grid columns
Grid.xs/sm/md/lgnumber—Column span at each breakpoint
Container.maxWidth"xs" | "sm" | "md" | "lg" | "xl" | "full""lg"Max width constraint
Application component → Layoutwww.pepulux.com

Notes and documentation

Space for notes, documentation, and best practices for using these components.

Compose with a few primitives

Stack, grid and container primitives keep spacing consistent. Prefer them to one-off margins.