# Layout

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tui/widgets/final_markdown/_layout/Layout)

Lay out parsed blocks at a width, following Textual's block CSS.

## Signature

```python
Layout(
    self,
    theme: Theme,
)
```

## Constructors

```python
__init__(
    self,
    theme: Theme,
) -> None
```

| Name | Type |
|------|------|
| `theme` | `Theme` |


## Properties

- `theme`

## Methods

- [`blocks()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/final_markdown/_layout/Layout/blocks)
- [`block()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/final_markdown/_layout/Layout/block)
- [`heading()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/final_markdown/_layout/Layout/heading)
- [`fence()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/final_markdown/_layout/Layout/fence)
- [`highlight_theme()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/final_markdown/_layout/Layout/highlight_theme)
- [`quote()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/final_markdown/_layout/Layout/quote)
- [`list_block()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/final_markdown/_layout/Layout/list_block)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/6a8d452d70f9bcb978e6bd44831dda093ecbe928/libs/code/deepagents_code/tui/widgets/final_markdown/_layout.py#L72)