Package Exports
- @emotion/react
- @emotion/react/dist/emotion-react.browser.cjs.js
- @emotion/react/dist/emotion-react.browser.esm.js
- @emotion/react/dist/emotion-react.cjs.js
- @emotion/react/dist/emotion-react.esm.js
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/react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@emotion/react
Simple styling in React.
Install
yarn add @emotion/react
Usage
/** @jsx jsx */
import { jsx, css, Global, ClassNames } from '@emotion/react'
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.