| Name | Last modified | Size | Description | |
|---|---|---|---|---|
| Parent Directory | - | |||
| _isolated-hnrs/ | 2023-06-19 12:49 | - | ||
| jsx-dev-runtime/ | 2023-06-19 12:49 | - | ||
| jsx-runtime/ | 2023-06-19 12:49 | - | ||
| dist/ | 2023-06-19 12:49 | - | ||
| src/ | 2023-06-19 12:49 | - | ||
| types/ | 2023-06-19 12:49 | - | ||
| LICENSE | 1985-10-26 08:15 | 1.1K | ||
| README.md | 1985-10-26 08:15 | 720 | ||
| macro.d.mts | 1985-10-26 08:15 | 27 | ||
| macro.d.ts | 1985-10-26 08:15 | 31 | ||
| macro.js | 1985-10-26 08:15 | 62 | ||
| macro.js.flow | 1985-10-26 08:15 | 40 | ||
| package.json | 2023-06-19 12:51 | 4.9K |
# @emotion/react
> Simple styling in React.
## Install
```bash
yarn add @emotion/react
```
## Usage
```jsx
/** @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](https://emotion.sh).