How to use the substyle.createSubstyle function in substyle

To help you get started, we’ve selected a few substyle examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jfschwarz / substyle / packages / substyle-jss / src / injectSheet.js View on Github external
const SubstyleJss = ({ classes, sheet, style, className, ...rest }) => {
      return createElement(WrappedComponent, {
        style: createSubstyle(
          {
            style,
            className,
            classNames: classes,
          },
          createPropsDecorator(sheet)
        ),
        ...rest,
      })
    }
github jfschwarz / substyle / packages / substyle-glamor / src / index.js View on Github external
export const asDataClasses = style =>
  createSubstyle({ style }, decorateAsClasses)
github jfschwarz / substyle / packages / substyle-glamor / src / index.js View on Github external
export const asDataAttributes = style =>
  createSubstyle({ style }, decorateAsDataAttributes)

substyle

Universal styling for reusable React components

MIT
Latest version published 4 years ago

Package Health Score

50 / 100
Full package analysis