--- title: Callout Component linkTitle: Callout aliases: - callouts prev: /docs/guide/shortcodes --- A built-in component to show important information to the reader. > [!NOTE] > [GitHub-style alerts](../../markdown#alerts) are supported since [v0.9.0](https://github.com/imfing/hextra/releases/tag/v0.9.0). > It leverages Markdown syntax to render the callout which ensures better portability and readability of the content. ## Examples {{< callout >}} A **callout** is a short piece of text intended to attract attention. {{< /callout >}} {{< callout type="info" >}} A **callout** is a short piece of text intended to attract attention. {{< /callout >}} {{< callout type="warning" >}} A **callout** is a short piece of text intended to attract attention. {{< /callout >}} {{< callout type="error" >}} A **callout** is a short piece of text intended to attract attention. {{< /callout >}} {{< callout type="important" >}} A **callout** is a short piece of text intended to attract attention. {{< /callout >}} ### Default {{< callout >}} A **callout** is a short piece of text intended to attract attention. {{< /callout >}} ```markdown {{}} A **callout** is a short piece of text intended to attract attention. {{}} ``` ### Info {{< callout type="info" >}} A **callout** is a short piece of text intended to attract attention. {{< /callout >}} ```markdown {{}} A **callout** is a short piece of text intended to attract attention. {{}} ``` ### Warning {{< callout type="warning" >}} A **callout** is a short piece of text intended to attract attention. {{< /callout >}} ```markdown {{}} A **callout** is a short piece of text intended to attract attention. {{}} ``` ### Error {{< callout type="error" >}} A **callout** is a short piece of text intended to attract attention. {{< /callout >}} ```markdown {{}} A **callout** is a short piece of text intended to attract attention. {{}} ``` ### Important {{< callout type="important" >}} A **callout** is a short piece of text intended to attract attention. {{< /callout >}} ```markdown {{}} A **callout** is a short piece of text intended to attract attention. {{}} ``` ### Custom Icon {{< callout icon="sparkles" >}} A **callout** is a short piece of text intended to attract attention. {{< /callout >}} ```markdown {{}} A **callout** is a short piece of text intended to attract attention. {{}} ``` {{< callout type="important" icon="sparkles" >}} A **callout** is a short piece of text intended to attract attention. {{< /callout >}} ```markdown {{}} A **callout** is a short piece of text intended to attract attention. {{}} ``` ### Emoji {{< callout emoji="🌐" >}} A **callout** is a short piece of text intended to attract attention. {{< /callout >}} ```markdown {{}} A **callout** is a short piece of text intended to attract attention. {{}} ``` {{< callout type="info" emoji="â„šī¸" >}} A **callout** is a short piece of text intended to attract attention. {{< /callout >}} ```markdown {{}} A **callout** is a short piece of text intended to attract attention. {{}} ``` ## Options | Parameter | Description | |-----------|---------------------------------------------------------------------------------| | `type` | The type of callout. (default, `info`, `warning`, `error`, `important`) | | `emoji` | The emoji to show before the callout. | | `icon` | The icon to show before the callout. (related to type or can be a custom icon). |