@emotion/react
> Simple styling in React.
Last updated 3 years ago by emotion-release-bot .
MIT · Repository · Original npm
$ cnpm install @emotion/react 
SYNC missed versions from official npm registry.

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

Current Tags

  • 11.10.4                                ...           latest (3 years ago)

5 Versions

  • 11.10.4                                ...           3 years ago
  • 11.9.0                                ...           3 years ago
  • 11.0.0-rc.0                                ...           5 years ago
  • 11.0.0-next.10                                ...           6 years ago
  • 11.4.1                                ...           4 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (11)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org