umd-styles-library
    Preparing search index...

    Function objectWithClassName

    • Creates a JSS object with type checking.

      Type Parameters

      • T extends JssEntry

        Type extending JssEntry

      Parameters

      • style: T

        The style object

      Returns T

      The JSS object with the same type

      import * as Styles from '@universityofmaryland/web-styles-library';
      Styles.create.jss.objectWithClassName({ color: 'red', className: 'my-class' })

      1.1.0