EventBuzz_Console/node_modules/@emotion/react
Ravi Gulhane 50cfd63778 first commit 2026-06-02 11:00:15 +05:30
..
_isolated-hnrs first commit 2026-06-02 11:00:15 +05:30
dist first commit 2026-06-02 11:00:15 +05:30
jsx-dev-runtime first commit 2026-06-02 11:00:15 +05:30
jsx-runtime first commit 2026-06-02 11:00:15 +05:30
src first commit 2026-06-02 11:00:15 +05:30
types first commit 2026-06-02 11:00:15 +05:30
LICENSE first commit 2026-06-02 11:00:15 +05:30
README.md first commit 2026-06-02 11:00:15 +05:30
macro.d.mts first commit 2026-06-02 11:00:15 +05:30
macro.d.ts first commit 2026-06-02 11:00:15 +05:30
macro.js first commit 2026-06-02 11:00:15 +05:30
package.json first commit 2026-06-02 11:00:15 +05:30

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.