# Toast buttons

> The values of `data-action` inside `smootify-toasts [toast]`.

Status: Ready (Smootify 2.0)  
URL: https://www.smootify.io/docs/astro/reference/attributes/toast-actions  
Updated: 2026-10-21

## Where it can go

- **Inside** `smootify-toasts [toast]`.
- On a real `<button>`, link.

## Values

| Attribute and value | What it is | Notes |
|---|---|---|
| `data-action="close"` | Close the toast | — |
| `data-action="open-cart"` | Open the cart | Opens the page’s mini cart and closes the toast; with no mini cart a link to the cart page works as a link |
