---
url: https://docs.juniper.bot/en/message-templates/components.md
description: Components used in message templates and other places.
---

# Components { #intro }

Components are visual and interactive UI elements used in message templates and [Modal Forms](../../cmd/custom/actions/modal-form) of custom commands.

There are different component sets available depending on message template mode selected in [Interface](../ui/index).

::: warning
Specific component availability depends on the context. For example, select menus and non-link buttons are only available for [Custom Commands](../../cmd/custom/index).
:::

## Text and Embed Modes { #text-and-embed }

Those modes support following components:

* [Action Row](action-row/index) (added automatically):
  * [Button](button/index);
  * [String Select Menu](string-select-menu/index);
  * [Entity Select Menu](entity-select-menu/index).

You can add up to 5 rows with up to 5 buttons or single select menu for each row.

## Components Mode { #components }

This mode supports a lot of different components:

* [Text Display](text-display/index);
* [Container](container/index);
* [Section](section/index);
* [Separator](separator/index);
* [Action Row](action-row/index):
  * [Button](button/index);
  * [String Select Menu](string-select-menu/index);
  * [Entity Select Menu](entity-select-menu/index);
* [Media Gallery](gallery/index).

You can add up to 40 components in total, taking into account the hierarchy. For example:

* Action Row with 5 buttons inside of it are 6 components in total (action row itself + 5 buttons).
* Section with accessory button and single text display are 3 components in total (section itself + accessory button + text display);
* Container with section having accessory button and single text display are 4 components in total (container itself + section + accessory button + text display).

If the message template execution results in more than 40 components, the components that exceed this limit will be discarded.

## Modal Forms { #modal-forms }

[Modal forms](../../cmd/custom/actions/modal-form) supports following components:

* [Text Display](text-display/index);
* [String Select Menu](string-select-menu/index);
* [Entity Select Menu](entity-select-menu/index);
* [Text Input](text-input/index);
* [File Upload](attachment-upload/index);
* [Checkbox](checkbox/index);
* [Checkbox Group](checkbox-group/index);
* [Radio Group](radio-group/index).

Modal forms must have at least one component, up to 5.
