@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.02,125,089latest
11.0.0-next.1056next
11.0.0-rc.03rc

Version History

VersionDownloads (Last 7 Days)Published
11.14.02,125,089
11.13.5311,773
11.13.31,128,812
11.13.0261,208
11.12.08,710
11.11.41,052,338
11.11.3389,780
11.11.1812,122
11.11.0162,294
11.10.838,506
11.10.6202,550
11.10.5242,449
11.10.4132,341
11.10.055,606
11.9.3130,307
11.9.0140,979
11.8.227,531
11.8.118,476
11.8.025
11.7.173,953
11.7.09,008
11.6.018,796
11.5.017,898
11.4.135,845
11.4.048,836
11.1.521,180
11.1.42,474
11.1.36
11.1.2779
11.1.1693
11.1.034
11.0.021,895
11.0.0-rc.03
11.0.0-next.191
11.0.0-next.171
11.0.0-next.160
11.0.0-next.153
11.0.0-next.142
11.0.0-next.133,677
11.0.0-next.1233
11.0.0-next.11292
11.0.0-next.1056

Package Sidebar

Install

npm i @emotion/react

Weekly Downloads

1,676,031

Version

11.14.0

License

MIT

Unpacked Size

817 kB

Total Files

149

Last publish

Collaborators

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