# Modal Label

> Label wrapper for a text input or select component in a modal.

- ID: `modalcmp_layout_label`
- Type: Block
- Category: [Modals](https://inventor.bot/docs/reference/blocks/modals.md)

- Can only be placed inside `show_modal` (components).

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `label` | yes | Label text shown above the component. | e.g. `"Reason"` |
| `description` |  | Optional helper text shown under the label. | e.g. `"Please provide as much detail as possible."` |
| `component` |  | Component | blocks: `func() { ... }` with only `modalcmp_input_text*`, `advmsgcmp_interaction_select_*` blocks |

**Example**

```go
show_modal(Args{
	custom_id: "report_modal_123",
	title:     "Bug Report",
	components: func() {
		modalcmp_layout_label(Args{label: "Reason"})
	},
})
```

## Placement

Can only be placed inside:

- [Show Modal](https://inventor.bot/docs/reference/blocks/interactions/show-modal.md) (`show_modal`), in `components`

## Blocks inside

These blocks can only be placed inside this one:

- [Text Input](https://inventor.bot/docs/reference/blocks/modals/modalcmp-input-text.md) (`modalcmp_input_text`), in `component`
- [String Select Option](https://inventor.bot/docs/reference/blocks/advanced-messages/advmsgcmp-interaction-select-option.md) (`advmsgcmp_interaction_select_option`), in `component`
- [String Select](https://inventor.bot/docs/reference/blocks/advanced-messages/advmsgcmp-interaction-select-string.md) (`advmsgcmp_interaction_select_string`), in `component`
- [User Select](https://inventor.bot/docs/reference/blocks/advanced-messages/advmsgcmp-interaction-select-user.md) (`advmsgcmp_interaction_select_user`), in `component`
- [Role Select](https://inventor.bot/docs/reference/blocks/advanced-messages/advmsgcmp-interaction-select-role.md) (`advmsgcmp_interaction_select_role`), in `component`
- [Mentionable Select](https://inventor.bot/docs/reference/blocks/advanced-messages/advmsgcmp-interaction-select-mentionable.md) (`advmsgcmp_interaction_select_mentionable`), in `component`
- [Channel Select](https://inventor.bot/docs/reference/blocks/advanced-messages/advmsgcmp-interaction-select-channel.md) (`advmsgcmp_interaction_select_channel`), in `component`