![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | dist/ | 2 years ago | - | |
![]() | isolated-hoist-non-react-statics-do-not-use-this-in-your-code/ | 2 years ago | - | |
![]() | jsx-dev-runtime/ | 2 years ago | - | |
![]() | jsx-runtime/ | 2 years ago | - | |
![]() | src/ | 2 years ago | - | |
![]() | types/ | 2 years ago | - | |
![]() | CHANGELOG.md | 39 years ago | 44K | |
![]() | macro.d.ts | 39 years ago | 31 | |
![]() | macro.js | 39 years ago | 62 | |
![]() | macro.js.flow | 39 years ago | 40 | |
![]() | LICENSE | 39 years ago | 1.1K | 7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك] |
![]() | package.json | 2 years ago | 2.8K | 7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك] |
![]() | README.md | 39 years ago | 698 | f12eb36 documentaiton updates [كارل مبارك] |
Simple styling in React.
yarn add @emotion/react
/** @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.