Skip to content

Function: resolveModifierConvention() ​

ts
function resolveModifierConvention(input?): ModifierConvention;

Defined in: packages/core/src/modifier.ts:132

Resolve a preset name or custom object into a fully-populated ModifierConvention (defaults filled in). No argument resolves to the DEFAULT_MODIFIER_CONVENTION (BEM).

Parameters ​

input? ​

ModifierConventionInput

Returns ​

ModifierConvention

Throws ​

If given an unknown preset name.

Released under the MIT License