Alerts

Alerts

Heads up!

You can add components and dependencies to your app.
<div class="alert"><i class="icon icon-info" aria-hidden="true"></i>
<h2>Heads up!</h2>
<section>You can add components and dependencies to your app.</section>
</div>

Status

Order received

The default alert carries neutral information.

Shipping rates updated

New carrier rates apply to orders created from today.

Payment captured

$248.00 was captured and the order is ready to fulfil.

Low stock

3 variants are below their reorder threshold.

Payment failed

The card was declined. Ask the customer for another method.
<div class="grid gap-4">
<div class="alert"><i class="icon icon-terminal" aria-hidden="true"></i>
<h2>Order received</h2>
<section>The default alert carries neutral information.</section>
</div>
<div class="alert" data-variant="info"><i class="icon icon-info" aria-hidden="true"></i>
<h2>Shipping rates updated</h2>
<section>New carrier rates apply to orders created from today.</section>
</div>
<div class="alert" data-variant="success"><i class="icon icon-circle-check" aria-hidden="true"></i>
<h2>Payment captured</h2>
<section>$248.00 was captured and the order is ready to fulfil.</section>
</div>
<div class="alert" data-variant="warning"><i class="icon icon-triangle-alert" aria-hidden="true"></i>
<h2>Low stock</h2>
<section>3 variants are below their reorder threshold.</section>
</div>
<div class="alert" data-variant="destructive"><i class="icon icon-circle-alert" aria-hidden="true"></i>
<h2>Payment failed</h2>
<section>The card was declined. Ask the customer for another method.</section>
</div>
</div>

With actions

Subscription ends in 3 days

Renew now to keep fulfilment automations running.
<div class="alert" data-variant="warning"><i class="icon icon-triangle-alert" aria-hidden="true"></i>
<h2>Subscription ends in 3 days</h2>
<section>Renew now to keep fulfilment automations running.</section>
<footer>
<button type="button" class="btn" data-size="sm">Renew</button>
<button type="button" class="btn" data-variant="ghost" data-size="sm">Remind me later</button>
</footer>
</div>

Title only

Changes saved

<div class="alert" data-variant="success"><i class="icon icon-circle-check" aria-hidden="true"></i>
<h2>Changes saved</h2>
</div>

Without icon

Scheduled maintenance

The admin API is read-only on Sunday between 02:00 and 04:00 UTC.
<div class="alert" data-variant="info">
<h2>Scheduled maintenance</h2>
<section>The admin API is read-only on Sunday between 02:00 and 04:00 UTC.</section>
</div>