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
| Name | Type | Required | Description |
|---|---|---|---|
| props | object | no | The button's tone and emphasis props. |
props Properties
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| emphasis | ButtonEmphasis | Explicit emphasis axis. | ||
| tone | ButtonTone | Explicit tone axis. |
Returns
The resolved tone, emphasis, primitive key, and inline flag.
Source
client/lib/controls/button/buttonVariant.js:71