2023-07-28 22:11:25 +01:00
|
|
|
|
---
|
|
|
|
|
title: Callout Component
|
|
|
|
|
linkTitle: Callout
|
2023-08-28 22:45:29 +01:00
|
|
|
|
aliases:
|
|
|
|
|
- callouts
|
|
|
|
|
prev: /docs/guide/shortcodes
|
2023-07-28 22:11:25 +01:00
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
A built-in component to show important information to the reader.
|
|
|
|
|
|
2023-08-28 22:45:29 +01:00
|
|
|
|
<!--more-->
|
|
|
|
|
|
2024-12-28 16:23:58 +00:00
|
|
|
|
> [!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.
|
|
|
|
|
|
2025-08-17 19:42:59 +02:00
|
|
|
|
## Examples
|
2023-07-28 22:11:25 +01:00
|
|
|
|
|
2025-08-22 00:31:16 +02:00
|
|
|
|
{{< 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 >}}
|
|
|
|
|
|
2023-07-28 22:11:25 +01:00
|
|
|
|
### Default
|
|
|
|
|
|
2025-08-22 00:31:16 +02:00
|
|
|
|
{{< callout >}}
|
2025-08-17 19:42:59 +02:00
|
|
|
|
A **callout** is a short piece of text intended to attract attention.
|
2023-07-28 22:11:25 +01:00
|
|
|
|
{{< /callout >}}
|
|
|
|
|
|
|
|
|
|
```markdown
|
2025-08-22 00:31:16 +02:00
|
|
|
|
{{</* callout */>}}
|
|
|
|
|
A **callout** is a short piece of text intended to attract attention.
|
2023-07-28 22:11:25 +01:00
|
|
|
|
{{</* /callout */>}}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Info
|
|
|
|
|
|
|
|
|
|
{{< callout type="info" >}}
|
2025-08-17 19:42:59 +02:00
|
|
|
|
A **callout** is a short piece of text intended to attract attention.
|
2023-07-28 22:11:25 +01:00
|
|
|
|
{{< /callout >}}
|
|
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
|
{{</* callout type="info" */>}}
|
2025-08-17 19:42:59 +02:00
|
|
|
|
A **callout** is a short piece of text intended to attract attention.
|
2023-07-28 22:11:25 +01:00
|
|
|
|
{{</* /callout */>}}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Warning
|
|
|
|
|
|
|
|
|
|
{{< callout type="warning" >}}
|
2025-08-17 19:42:59 +02:00
|
|
|
|
A **callout** is a short piece of text intended to attract attention.
|
2023-07-28 22:11:25 +01:00
|
|
|
|
{{< /callout >}}
|
|
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
|
{{</* callout type="warning" */>}}
|
|
|
|
|
A **callout** is a short piece of text intended to attract attention.
|
|
|
|
|
{{</* /callout */>}}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Error
|
|
|
|
|
|
|
|
|
|
{{< callout type="error" >}}
|
2025-08-17 19:42:59 +02:00
|
|
|
|
A **callout** is a short piece of text intended to attract attention.
|
2023-07-28 22:11:25 +01:00
|
|
|
|
{{< /callout >}}
|
|
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
|
{{</* callout type="error" */>}}
|
2025-08-17 19:42:59 +02:00
|
|
|
|
A **callout** is a short piece of text intended to attract attention.
|
2023-07-28 22:11:25 +01:00
|
|
|
|
{{</* /callout */>}}
|
|
|
|
|
```
|
2025-08-17 19:42:59 +02:00
|
|
|
|
|
2025-08-22 00:31:16 +02:00
|
|
|
|
### Important
|
|
|
|
|
|
|
|
|
|
{{< callout type="important" >}}
|
|
|
|
|
A **callout** is a short piece of text intended to attract attention.
|
|
|
|
|
{{< /callout >}}
|
|
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
|
{{</* callout type="important" */>}}
|
|
|
|
|
A **callout** is a short piece of text intended to attract attention.
|
|
|
|
|
{{</* /callout */>}}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Custom Icon
|
|
|
|
|
|
|
|
|
|
{{< callout icon="sparkles" >}}
|
|
|
|
|
A **callout** is a short piece of text intended to attract attention.
|
|
|
|
|
{{< /callout >}}
|
|
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
|
{{</* callout icon="sparkles" */>}}
|
|
|
|
|
A **callout** is a short piece of text intended to attract attention.
|
|
|
|
|
{{</* /callout */>}}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
{{< callout type="important" icon="sparkles" >}}
|
|
|
|
|
A **callout** is a short piece of text intended to attract attention.
|
|
|
|
|
{{< /callout >}}
|
|
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
|
{{</* callout type="important" icon="sparkles" */>}}
|
|
|
|
|
A **callout** is a short piece of text intended to attract attention.
|
|
|
|
|
{{</* /callout */>}}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Emoji
|
|
|
|
|
|
|
|
|
|
{{< callout emoji="🌐" >}}
|
|
|
|
|
A **callout** is a short piece of text intended to attract attention.
|
|
|
|
|
{{< /callout >}}
|
|
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
|
{{</* callout emoji="🌐" */>}}
|
|
|
|
|
A **callout** is a short piece of text intended to attract attention.
|
|
|
|
|
{{</* /callout */>}}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
{{< callout type="info" emoji="ℹ️" >}}
|
|
|
|
|
A **callout** is a short piece of text intended to attract attention.
|
|
|
|
|
{{< /callout >}}
|
|
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
|
{{</* callout type="info" emoji="ℹ️" */>}}
|
|
|
|
|
A **callout** is a short piece of text intended to attract attention.
|
|
|
|
|
{{</* /callout */>}}
|
|
|
|
|
```
|
|
|
|
|
|
2025-08-17 19:42:59 +02:00
|
|
|
|
## Options
|
|
|
|
|
|
2025-08-22 00:31:16 +02:00
|
|
|
|
| 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). |
|