---
url: "https://vueda.dev/v3/reference/api/js/utils/actionVariant/functions/actionTone.md"
title: "actionTone"
---

# actionTone

## Overview

The intrinsic, placement-independent tone for an action. An action whose
metadata declares `tone` wins (the override seam for the server or model
config); otherwise a delete/destroy action is `destructive` and everything
else is `neutral`.

## Signature

`actionTone(actionName, actionDetail)`

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| <span id="param-actionName">actionName</span> | `string` | yes | The action / view name (e.g. `create`, `destroy`). |
| <span id="param-actionDetail">actionDetail</span> | [ActionInfo](/v3/reference/api/js/stores/storeModelInfo/types/ActionInfo.md) | no | The action's metadata, when available. |

### Returns

`"neutral" | "destructive"`

The intrinsic tone.

## Source

`client/lib/utils/actionVariant.js:31`
