Skip to content

resolveActionVariant

Overview

Folds the two layers into a { tone, emphasis } pair for Button. Promotion sets the emphasis to fill and, for a neutral action, lifts the tone to primary so the hero reads as the earned CTA; a promoted destructive action stays destructive (a filled destructive hero, as on a destroy view). Explicit tone overrides the action's intrinsic tone.

Signature

resolveActionVariant(input)

Parameters

NameTypeRequiredDescription
inputActionVariantInputnoThe action and its placement context.

Returns

The resolved Button axes.

Source

client/lib/utils/actionVariant.js:58

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2