# Section

> Holds text alongside an accessory button or thumbnail.

- ID: `advmsgcmp_layout_section`
- Type: Block
- Category: [Advanced Messages](https://inventor.bot/docs/reference/blocks/advanced-messages.md)

- Can only be placed inside `respond_interaction_advanced` (message_components), `send_advanced_message` (message_components), `advmsgcmp_layout_container` (children).

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `children` |  | Text | blocks: `func() { ... }` with only `advmsgcmp_content_text*` blocks |
| `accessory` |  | Accessory | blocks: `func() { ... }` with only `advmsgcmp_interaction_button*`, `advmsgcmp_media_image*` blocks |

**Example**

```go
respond_interaction_advanced(Args{
	message_components: func() {
		advmsgcmp_layout_section()
	},
})
```

## Placement

Can only be placed inside:

- [Respond to Interaction with Advanced Message](https://inventor.bot/docs/reference/blocks/interactions/respond-interaction-advanced.md) (`respond_interaction_advanced`), in `message_components`
- [Send Advanced Message](https://inventor.bot/docs/reference/blocks/messages/send-advanced-message.md) (`send_advanced_message`), in `message_components`
- [Message Container](https://inventor.bot/docs/reference/blocks/advanced-messages/advmsgcmp-layout-container.md) (`advmsgcmp_layout_container`), in `children`

## Blocks inside

These blocks can only be placed inside this one:

- [Text](https://inventor.bot/docs/reference/blocks/advanced-messages/advmsgcmp-content-text.md) (`advmsgcmp_content_text`), in `children`
- [Button](https://inventor.bot/docs/reference/blocks/advanced-messages/advmsgcmp-interaction-button.md) (`advmsgcmp_interaction_button`), in `accessory`
- [Image](https://inventor.bot/docs/reference/blocks/advanced-messages/advmsgcmp-media-image.md) (`advmsgcmp_media_image`), in `accessory`