npm.devtool.tech
👏 You can access @emotion/react package with using emotionReact variable in browser devtools!
> Simple styling in React.

code/package/bundle size

0B
publish
0B
install
0B
bundle minified
0B
bundle gzipped

@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.

🔎Explore Package🔎CDN Script

Score

Popularity61/100
Quality90/100
Maintenance99/100