---
title: "Layout primitives (Stack, Cluster, Surface)"
description: "Structural wrapper components (Stack, Cluster, Surface, PageContainer) that provide consistent spacing and layout without one-off CSS."
category: "UI Components & Design System"
---

# Layout primitives (Stack, Cluster, Surface)

> Generated from `mcp/patterns.registry.json` — do not edit by hand; change the registry and run `bun run patterns:build`.

_Index card — the docs below are the canonical explanation; deep-tier pattern pages additionally carry invariants and emulation notes._

**Category:** UI Components & Design System · **Tier:** light · **Risk:** low — frontend only

Structural wrapper components (Stack, Cluster, Surface, PageContainer) that provide consistent spacing and layout without one-off CSS.

**When to use:** Use to arrange child elements with consistent gaps and structure instead of writing bespoke flex/grid CSS on every page.

## Docs

- [docs/blueprint/design/styling.md](/docs/blueprint/design/styling) ([GitHub](https://github.com/ApeDevil/v10r/blob/main/docs/blueprint/design/styling.md) · [GitLab](https://gitlab.com/ApeDevil/v10r/-/blob/main/docs/blueprint/design/styling.md))

## Code

- `src/lib/components/layout/` ([GitHub](https://github.com/ApeDevil/v10r/tree/main/src/lib/components/layout) · [GitLab](https://gitlab.com/ApeDevil/v10r/-/tree/main/src/lib/components/layout))

## Proof

- [`/showcases/ui/layouts`](/showcases/ui/layouts)

---

_Machine-readable record: `ui-layout-primitives` in `mcp/patterns.registry.json`._
