UNPKG

bem-cn-lite

Version:

Lite version of the friendly BEM-style class name generator, which is great for React

20 lines (19 loc) 775 B
import { BemSettings } from 'bem-cn'; interface Modifications { [name: string]: string | boolean | undefined; } declare function bemClassNameLite(blockName: string): { (elementName: string, modifiers: Modifications | null, mixin?: string | string[] | undefined): string; (elementName: string, mixin?: string | string[] | undefined): string; (elementName: string, modifiers: Modifications): string; (mods: Modifications | null, mixin?: string | string[] | undefined): string; (elementName: string): string; (mods: Modifications | null): string; (): string; builder(): import("bem-cn").Block; }; declare namespace bemClassNameLite { var setup: (config: BemSettings) => void; var reset: () => void; } export default bemClassNameLite;