@emotion/react
TypeScript icon, indicating that this package has built-in type declarations

11.14.0 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
11.14.05,579,323latest
11.0.0-next.1026next
11.0.0-rc.021rc

Version History

VersionDownloads (Last 7 Days)Published
11.14.05,579,323
11.13.5174,616
11.13.3814,703
11.13.0222,272
11.12.09,754
11.11.41,003,149
11.11.3368,990
11.11.1871,913
11.11.0170,823
11.10.844,140
11.10.6208,453
11.10.5286,178
11.10.4137,702
11.10.074,295
11.9.3147,604
11.9.0174,818
11.8.237,447
11.8.126,612
11.8.019
11.7.1136,676
11.7.019,750
11.6.018,122
11.5.045,334
11.4.1158,859
11.4.094,101
11.1.557,835
11.1.48,838
11.1.311
11.1.21,453
11.1.12,161
11.1.047
11.0.01,727
11.0.0-rc.021
11.0.0-next.192
11.0.0-next.1742
11.0.0-next.162
11.0.0-next.154
11.0.0-next.14774
11.0.0-next.13140
11.0.0-next.12121
11.0.0-next.1165
11.0.0-next.1026

Package Sidebar

Install

npm i @emotion/react

Weekly Downloads

10,898,922

Version

11.14.0

License

MIT

Unpacked Size

817 kB

Total Files

149

Last publish

Collaborators

  • tkh44
  • emotion-release-bot
  • andarist
  • emmatown