---
url: /tui.zig/api/layout.md
---
# Layout

Layout primitives and helper types.

* `Rect` - Bounding rectangle used by widgets
* `FlexRow` / `FlexColumn` - Composable flex containers
* `Grid` - Grid layout helper
* `Stack` - Overlapping stack layout

See `src/layout` for implementation and examples.
