Package Exports
- @emotion/core
- @emotion/core/dist/core.browser.cjs.js
- @emotion/core/dist/core.browser.esm.js
- @emotion/core/dist/core.cjs.js
- @emotion/core/dist/core.esm.js
- @emotion/core/package.json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@emotion/core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@emotion/core
Simple styling in React.
Install
yarn add @emotion/coreUsage
/** @jsx jsx */
import { jsx, css, Global, ClassNames } from '@emotion/core'
render(
  <div css={{ color: 'hotpink' }}>
    <div
      css={css`
        color: green;
      `}
    />
    <Global
      styles={{
        body: {
          margin: 0,
          padding: 0
        }
      }}
    />
    <ClassNames>
      {({ css, cx }) => (
        <div
          className={cx(
            'some-class',
            css`
              color: yellow;
            `
          )}
        />
      )}
    </ClassNames>
  </div>
)More documentation is available at https://emotion.sh.