# Separator

> Adds vertical padding between message components, with an optional divider line.

- ID: `advmsgcmp_layout_separator`
- 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 |
| --- | --- | --- | --- |
| `divider` |  | Whether the separator should show a visible divider line. | `"true"`, `"false"` |
| `spacing` |  | Padding size around the separator. | `"small"`, `"large"` |

**Example**

```go
respond_interaction_advanced(Args{
	message_components: func() {
		advmsgcmp_layout_separator(Args{divider: "true", spacing: "small"})
	},
})
```

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