umd-styles-library
    Preparing search index...

    Function processNestedJssObjects

    • Process nested JSS objects and convert to CSS. Recursively finds objects with className or selector properties and converts them to CSS strings.

      Parameters

      • obj: any

        The nested JSS object to process

      Returns string

      CSS string with all converted styles

      import * as Styles from '@universityofmaryland/web-styles-library';
      const css = Styles.utilities.transform.jss.processNestedJssObjects({
      buttons: {
      primary: { className: 'btn-primary', color: 'red' }
      }
      });

      1.8.0