Callout
With Actions
Fills the optional actions slot with a call to action.
Preview
{% callout title="Trial ending soon" tone="warning" %}
{% slot "message" %}Your free trial ends in 3 days.{% endslot %}
{% slot "actions" %}<a href="#">Upgrade now</a>{% endslot %}
{% endcallout %}
Parameters
| Name | Type | Requirement | Default | Choices | Description |
|---|---|---|---|---|---|
title
|
str
|
Optional | — | — | Optional heading shown above the message. |
tone
|
str
|
Required |
neutral
|
neutral
success
warning
|
Colour treatment of the callout. |
Slots
| Name | Requirement | Default | Description |
|---|---|---|---|
message
|
Required | — | Main callout text. |
actions
|
Optional | — | Optional links or buttons below the text. |
Select variant preset
Background colour
Viewport width
Zoom level
{% callout %}
{% slot "message" %}Your changes have been saved.{% endslot %}
{% endcallout %}
<aside class="callout warning">
<p class="callout__title">Trial ending soon</p>
<div class="callout__message">Your free trial ends in 3 days.</div>
<div class="callout__actions"><a href="#">Upgrade now</a></div>
</aside>