# Block

> **Class** in `deepagents_code`

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

Rows of a laid-out block plus the margins Textual's CSS gives it.

## Signature

```python
Block(
    self,
    rows: list[Row],
    top: int = 0,
    bottom: int = 0,
)
```

## Constructors

```python
__init__(
    self,
    rows: list[Row],
    top: int = 0,
    bottom: int = 0,
) -> None
```

| Name | Type |
|------|------|
| `rows` | `list[Row]` |
| `top` | `int` |
| `bottom` | `int` |


## Properties

- `rows`
- `top`
- `bottom`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/efa9f5364b83e9367ea57d9c21b15b4d81fdcb7a/libs/code/deepagents_code/tui/widgets/final_markdown/_rows.py#L41)