feat: add callout shortcode and doc

chore: disable underline for not-prose
This commit is contained in:
Xin
2023-07-27 23:26:07 +01:00
parent c8eb404fe6
commit 50b1b7db68
3 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,24 @@
---
title: Callout Component
linkTitle: Callout
---
A built-in component to show important information to the reader.
## Example
{{< callout emoji="👾">}}
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 >}}