stupa-pdf-api/frontend/node_modules/@emotion/react
2025-09-01 01:50:35 +02:00
..
_isolated-hnrs Main Features working; Further Debugging needed 2025-09-01 01:50:35 +02:00
jsx-dev-runtime Main Features working; Further Debugging needed 2025-09-01 01:50:35 +02:00
jsx-runtime Main Features working; Further Debugging needed 2025-09-01 01:50:35 +02:00
src Main Features working; Further Debugging needed 2025-09-01 01:50:35 +02:00
types Main Features working; Further Debugging needed 2025-09-01 01:50:35 +02:00
LICENSE Main Features working; Further Debugging needed 2025-09-01 01:50:35 +02:00
macro.d.mts Main Features working; Further Debugging needed 2025-09-01 01:50:35 +02:00
macro.d.ts Main Features working; Further Debugging needed 2025-09-01 01:50:35 +02:00
macro.js Main Features working; Further Debugging needed 2025-09-01 01:50:35 +02:00
package.json Main Features working; Further Debugging needed 2025-09-01 01:50:35 +02:00
README.md Main Features working; Further Debugging needed 2025-09-01 01:50:35 +02:00

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