Toasts
The values of `toast` inside `smootify-toasts`.
On this page
Where it can go
- Inside
smootify-toasts. - On container.
Values
| Attribute and value | What it is | Notes |
|---|---|---|
toast="added-to-cart" | Added to cart | Template: shown after an add to cart, from any button; not when a mini cart opens for that add |
toast="cart-error" | Cart error | Template: shown when Shopify refuses a cart change (add, quantity, discount code); is-error and role=alert |
toast="wishlist-added" | Saved to wishlist | Template: shown when a wishlist-toggle saves a product |
toast="wishlist-removed" | Removed from wishlist | Template: shown when a wishlist-toggle removes a product |
toast="form-sent" | Form sent | Template: shown when a Smootify form is sent (newsletter, back in stock, account and server forms) |
toast="link-copied" | Link copied | Template: shown when a share button copies its link, not when the share sheet opens |
toast="error" | Error | Template: the fallback for cart-error and for Smootify.toast(”…-error”); is-error and role=alert |