# Cookie consent

> The values of `data-action` inside `smootify-consent`.

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

## Where it can go

- **Inside** [`smootify-consent`](https://www.smootify.io/docs/astro/reference/elements/smootify-consent).

## Values

| Attribute and value | What it is | Notes |
|---|---|---|
| `data-action="accept"` | Accept all | on button, link |
| `data-action="decline"` | Decline all | on button, link |
| `data-action="save"` | Save the choices | on button, link |
| `data-action="preferences"` | Open the preferences | on button, link |
| `data-action="close"` | Close | on button, link |
| `name="marketing"` | Marketing | A checkbox; on input |
| `name="analytics"` | Analytics | A checkbox; on input |
| `name="preferences"` | Preferences | A checkbox; on input |
| `name="sale_of_data"` | Sale of data | A checkbox; on input |
| `consent-panel="banner"` | Banner panel | on container |
| `consent-panel="preferences"` | Preferences panel | on container |
