buildClassName
buildClassName(
args):string
Defined in: packages/webcomponents/src/buildClassName.js:31
Build a BEM class string from a block/element plus a map of modifier values,
mirroring @bem-broom/react’s useBem coercion: true → --name, an array
→ one --name_item per item, false/null/undefined → skipped, anything
else → --name_String(value) (a throwing toString is silently skipped).
Parameters
Section titled “Parameters”config?
Section titled “config?”BemConfig = {}
element
Section titled “element”string
modifierValues
Section titled “modifierValues”Record<string, unknown>
resolvedBlock
Section titled “resolvedBlock”string | undefined
Block from context, or undefined for a root.
Returns
Section titled “Returns”string
