Skip to content

resolveButtonVariant

Overview

Folds the explicit tone / emphasis props into a single resolved cell. With nothing set, falls back to DEFAULT_VARIANT.

Signature

resolveButtonVariant(props)

Parameters

NameTypeRequiredDescription
propsobjectnoThe button's tone and emphasis props.

props Properties

NameTypeRequiredDefaultDescription
emphasisButtonEmphasisExplicit emphasis axis.
toneButtonToneExplicit tone axis.

Returns

ResolvedButtonVariant

The resolved tone, emphasis, primitive key, and inline flag.

Source

client/lib/controls/button/buttonVariant.js:71

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