molecules
Callout
A short note, tip, or warning block with a tone, an optional title, and text, html, or a call body.
Specimens
{{ Callout.render({
title: "Note",
tone: "info",
text: "Specimens render without the choreography bundle."
}) }}{{ Callout.render({
title: "Heads up",
tone: "warning",
text: "This component is not used on a live page yet."
}) }}{% call Callout.render({ title: "Tip", tone: "success" }) %}
<p class="m-0">Rich content <a class="underline" href="/work/">with a link</a>.</p>
{% endcall %}{{ Callout.render({
tone: "danger",
html: "<strong>Destructive.</strong> This cannot be undone."
}) }}Params
| Param | Type | Description |
|---|---|---|
title | string | Optional heading, rendered as h3. |
tone | string | info (default), success, warning, or danger. Unknown values fall back to info. |
ariaLabel | string | aria-label on the <aside>. Defaults to “Callout”. |
classes | string | Appended as-is to the <aside>. No classes filter. |
html | string | HTML, output with safe. Used when there is no {% call %} body. |
text | string | Plain text in a <p>. Used when neither a caller body nor html is set. |
Notes
Tones are info (the default), success, warning, and danger. An unknown tone falls back to info. The classes param accepts a string or a variant map.