# Message Container

> Holds text, thumbnails, galleries, and other content components.

- ID: `advmsgcmp_layout_container`
- 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).

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `children` |  | Container Children | blocks: `func() { ... }` with only `advmsgcmp_content_*`, `advmsgcmp_layout_actionrow*`, `advmsgcmp_layout_section*`, `advmsgcmp_layout_gallery*`, `advmsgcmp_layout_separator*` blocks |
| `accent_color` |  | Hexadecimal color code for the accent color of the container. | e.g. `"#0099ff"` |
| `spoiler` |  | Spoiler | e.g. `"true"` |

**Example**

```go
respond_interaction_advanced(Args{
	message_components: func() {
		advmsgcmp_layout_container(Args{accent_color: "#0099ff", spoiler: "true"})
	},
})
```

## 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`

## 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`
- [Section](https://inventor.bot/docs/reference/blocks/advanced-messages/advmsgcmp-layout-section.md) (`advmsgcmp_layout_section`), in `children`
- [Action Row](https://inventor.bot/docs/reference/blocks/advanced-messages/advmsgcmp-layout-actionrow.md) (`advmsgcmp_layout_actionrow`), in `children`
- [Separator](https://inventor.bot/docs/reference/blocks/advanced-messages/advmsgcmp-layout-separator.md) (`advmsgcmp_layout_separator`), in `children`
- [Gallery](https://inventor.bot/docs/reference/blocks/advanced-messages/advmsgcmp-layout-gallery.md) (`advmsgcmp_layout_gallery`), in `children`