@material-ui/styled-engine-sc
TypeScript icon, indicating that this package has built-in type declarations

5.0.0-alpha.11 • Public • Published

@material-ui/styled-engine-sc

This package is a wrapper around the styled-components package. It is created to be used as alias for the @material-ui/styled-engine package, for the developers who would like to use styled-components as a styled engine instead of @emotion/styled.

Installation

The installation of the dependency in your package is slightly different from the usual. You need to alias the default emotion implementation to the styled-components one. Depending on the bundler you are using, you made add it like this:

webpack

module.exports = {
  //...
  resolve: {
    alias: {
      '@material-ui/styled-engine': '@material-ui/styled-engine-sc',
    },
  },
};

Versions

Current Tags

Version History

Package Sidebar

Install

npm i @material-ui/styled-engine-sc

Weekly Downloads

276

Version

5.0.0-alpha.11

License

MIT

Unpacked Size

621 kB

Total Files

8

Last publish

Collaborators