# smootify-consent [data-action]

> Consent buttons (accept all, decline all, save choices, open preferences, close).

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

`smootify-consent [data-action]` is a **template**, read by [`smootify-consent`](https://www.smootify.io/docs/astro/reference/elements/smootify-consent): it is never defined on its own.

## Where it can go

- **Inside** [`smootify-consent`](https://www.smootify.io/docs/astro/reference/elements/smootify-consent).
- **Out of place,** it stays in the page and does nothing.

## What it requires

Nothing beyond Smootify: it works on every plan.

## Attributes on the element

- **It reads** `data-action`.

## Attributes inside it

| Group | Attribute name | Values |
|---|---|---|
| [Cookie consent](https://www.smootify.io/docs/astro/reference/attributes/consent) | `data-action` | 11 |
| [Cookie banner (condition)](https://www.smootify.io/docs/astro/reference/conditions/consent) | `consent-condition` | 1 |
