# `layout` Controls the layout of the API docs page, affecting how the panels are displayed. The default value is `three-panel` which uses the default layout with the sidebar, middle panel, and right panel with code samples. Set the value to `stacked` to move the entire right panel into the middle panel. The `stacked` layout is identical to the layout activated by selecting the **Change View** button on the API documentation page. The layout is not available in Redoc Community Edition. The `layout` option is a string that sets the layout of the API documentation page. ## Options | Option | Type | Enum | Description | | --- | --- | --- | --- | | layout | string | `three-panel` | `stacked`. | Controls the layout of the API docs page. Default value is `three-panel`. | ## Examples The following example configures the layout for the API documentation page to be set to `stacked`: ```yaml redocly.yaml openapi: layout: 'stacked' ``` ![stacked layout](/assets/stacked-layout.4102334317932f533d6ae37ba7b994dfee68c86717d36f5985ebe95bf3cea488.d96f5373.png) ```yaml redocly.yaml openapi: layout: 'three-panel' ``` ![three panel layout](/assets/three-panel-layout.c03a6c8c1f879f16a6b05b8a166609e766fbdfd7e82775338bc6cd3cbbb59210.d96f5373.png) ## Resources - **[OpenAPI configuration](/docs/realm/config/openapi)** - Complete guide to OpenAPI configuration options for customizing API reference documentation - **[OpenAPI Specification](https://spec.openapis.org/oas/latest.html)** - Official OpenAPI Specification documentation for understanding API description standards - **[OpenAPI visual reference](https://redocly.com/learn/openapi/openapi-visual-reference)** - Visual guide to OpenAPI specification structure and layout configuration principles - **[Configuration options](/docs/realm/config)** - Explore other project configuration options for comprehensive documentation customization