# Layout Gallery

> Pick the right PraisonAI Diagram layout from all 8 built-in interactive types.

Choose the shape that matches your claim. Every layout renders in light and dark mode, adapts down to 390 px screens, supports keyboard stepping (`←` / `→`), and exports animated SVG and 2x PNG.

## Pick a Layout in 10 Seconds

| When you want to show... | Use | Interactive Step Mode | Guide |
|---|---|---|---|
| A linear sequence of stages (with optional rollback) | **`flow`** | Nodes | [Flow guide](https://diagram.praison.ai/docs/layouts/flow.md) |
| Branching paths, subgraphs, cycles, or bidirectional sync | **`graph`** | Nodes | [Graph guide](https://diagram.praison.ai/docs/layouts/graph.md) |
| Messages and notes exchanged across participants over time | **`sequence`** | Messages & notes | [Sequence guide](https://diagram.praison.ai/docs/layouts/sequence.md) |
| A repeating cycle around a core invariant | **`loop`** | Nodes | [Loop guide](https://diagram.praison.ai/docs/layouts/loop.md) |
| Nested layers or control boundaries | **`stack`** | Layers | [Stack guide](https://diagram.praison.ai/docs/layouts/stack.md) |
| One source distributing to 2–10 backends or tools | **`fan`** | Nodes | [Fan guide](https://diagram.praison.ai/docs/layouts/fan.md) |
| Ordered hooks or events along a single run | **`timeline`** | Events | [Timeline guide](https://diagram.praison.ai/docs/layouts/timeline.md) |
| Inputs on the left, core platform in the center, outputs on the right | **`map`** | Panels & chips | [Map guide](https://diagram.praison.ai/docs/layouts/map.md) |

## Common Controls Across All 8 Layouts

1. **Click any node, layer, or message** to open the inline inspector (`description`, copyable `code`, and safe `href` link).
2. **Press Play** (or `←` / `→` / `Home` / `End` / `Escape`) to step through automatically or by keyboard.
3. **Hover any node** to highlight its connected edges and dim unrelated parts.
4. **Drag the canvas** to pan, use **− / 100% / +** to zoom, or open **Fullscreen**.
5. **Export** a standalone CSS-animated **SVG** or crisp **2x PNG**, or copy the source spec.

## Related pages

- [Sequence Layout](https://diagram.praison.ai/docs/layouts/sequence.md)
- [Map Layout](https://diagram.praison.ai/docs/layouts/map.md)
- [Flow Layout](https://diagram.praison.ai/docs/layouts/flow.md)
