Options
All
  • Public
  • Public/Protected
  • All
Menu

@jahed/bem

Index

Type aliases

ArrayOrVarArgs

ArrayOrVarArgs<T>: T[] | T[][]

Type parameters

  • T

BEM

BEM: (elementName: ClassName, modifiers?: Modifiers) => ClassName

Type declaration

CSSModule

CSSModule: {}

Type declaration

ClassName

ClassName: string

Modifiers

Modifiers: {}

Type declaration

  • [key: string]: string | number | boolean | null | undefined

Functions

Const bem

  • bem(elementName: string, modifiers: undefined | {}): string
  • Generates BEM-compliant class names for the given block (or element) with modifiers.

    Parameters

    • elementName: string
    • modifiers: undefined | {}

    Returns string

Const bemModule

  • Generates a bem-compliant function which maps the resulting class names to the given cssModuleLocals map.

    Parameters

    Returns BEM

Const generateClassNames

Const join

  • Joins the given strings with a whitespace (), filtering any falsy values (such as undefined, null, false, '').

    Parameters

    Returns ClassName

Generated using TypeDoc