@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.04,074,073latest
11.0.0-next.1042next
11.0.0-rc.035rc

Version History

VersionDownloads (Last 7 Days)Published
11.14.04,074,073
11.13.5228,978
11.13.3909,511
11.13.0260,155
11.12.011,329
11.11.41,038,625
11.11.3385,662
11.11.1905,395
11.11.0172,906
11.10.843,225
11.10.6227,432
11.10.5263,629
11.10.4155,688
11.10.071,711
11.9.3148,206
11.9.0142,082
11.8.234,359
11.8.119,419
11.8.044
11.7.1125,463
11.7.011,117
11.6.029,578
11.5.032,766
11.4.142,713
11.4.057,857
11.1.534,743
11.1.42,960
11.1.324
11.1.21,699
11.1.1861
11.1.022
11.0.01,709
11.0.0-rc.035
11.0.0-next.195
11.0.0-next.1712
11.0.0-next.164
11.0.0-next.158
11.0.0-next.143
11.0.0-next.13209
11.0.0-next.1229
11.0.0-next.11503
11.0.0-next.1042

Package Sidebar

Install

npm i @emotion/react

Weekly Downloads

9,434,791

Version

11.14.0

License

MIT

Unpacked Size

817 kB

Total Files

149

Last publish

Collaborators

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