withBem
withBem(
Component,config):FunctionComponent<Record<string,unknown>>
Defined in: withBem.js:15
Wrap a component so it receives a computed BEM className prop. Reads the
block from context, promotes the props named in config.modifiers to
modifiers, and provides its element as the block for descendants.
Parameters
Section titled “Parameters”Component
Section titled “Component”ComponentType<any>
config
Section titled “config”Returns
Section titled “Returns”FunctionComponent<Record<string, unknown>>
