Variable StyleHelpersConst

StyleHelpers: {
    em: ((valueInPx) => string);
    rem: ((valueInPx) => string);
} = ...

Type declaration

  • em: ((valueInPx) => string)

    Converts the given number of pixel into Em values and format it into a string.

    Param: valueInPx

    The value in pixel to convert.

    Returns

    the string representation of the equivalent in Em of the given pixel amount.

      • (valueInPx): string
      • Converts the given number of pixel into Em values and format it into a string.

        Parameters

        • valueInPx: number

          The value in pixel to convert.

        Returns string

        the string representation of the equivalent in Em of the given pixel amount.

  • rem: ((valueInPx) => string)

    Converts the given number of pixel into Rem values and format it into a string.

    Param: valueInPx

    The value in pixel to convert.

    Returns

    the string representation of the equivalent in Rem of the given pixel amount.

      • (valueInPx): string
      • Converts the given number of pixel into Rem values and format it into a string.

        Parameters

        • valueInPx: number

          The value in pixel to convert.

        Returns string

        the string representation of the equivalent in Rem of the given pixel amount.

Generated using TypeDoc