You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
suresh 7185b2d1c4
Removed multer
3 years ago
..
_isolated-hnrs Removed multer 3 years ago
dist Removed multer 3 years ago
jsx-dev-runtime Removed multer 3 years ago
jsx-runtime Removed multer 3 years ago
src Removed multer 3 years ago
types Removed multer 3 years ago
LICENSE Removed multer 3 years ago
README.md Removed multer 3 years ago
macro.d.ts Removed multer 3 years ago
macro.js Removed multer 3 years ago
macro.js.flow Removed multer 3 years ago
package.json Removed multer 3 years ago

README.md

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