|
5 년 전 | |
---|---|---|
.. | ||
dist | 5 년 전 | |
src | 5 년 전 | |
types | 5 년 전 | |
CHANGELOG.md | 5 년 전 | |
README.md | 5 년 전 | |
package.json | 5 년 전 |
Simple styling in React.
yarn add @emotion/core
/** @jsx jsx */
import { jsx, css, Global, ClassNames } from '@emotion/core'
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.