umd-styles-library
    Preparing search index...

    Function formatNestedObjects

    • Processes nested JSS objects and flattens them.

      Type Parameters

      • T extends object

      Parameters

      • obj: T

        The object containing nested className or selector objects

      Returns JssNamedOutputFormat

      Flattened object with class names or selectors as keys

      import * as Styles from '@universityofmaryland/web-styles-library';
      const flattened = Styles.utilities.transform.jss.formatNestedObjects({
      container: {
      nested: { className: 'box', padding: '10px' }
      }
      });
      // Result: { '.box': { padding: '10px' } }

      1.1.0