/ archiveofbelonging.org / back / node_modules / @emotion / react /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]dist/2 years ago -  
[DIR]isolated-hoist-non-react-statics-do-not-use-this-in-your-code/2 years ago -  
[DIR]jsx-dev-runtime/2 years ago -  
[DIR]jsx-runtime/2 years ago -  
[DIR]src/2 years ago -  
[DIR]types/2 years ago -  
[TXT]CHANGELOG.md39 years ago 44K 
[TXT]macro.d.ts39 years ago 31  
[   ]macro.js39 years ago 62  
[   ]macro.js.flow39 years ago 40  
[   ]LICENSE39 years ago1.1K7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك]
[   ]package.json2 years ago2.8K7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك]
[TXT]README.md39 years ago698 f12eb36 documentaiton updates [كارل مبارك]
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.

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80