@zedvision/emotion-react
v10.10.34
Published
> Simple styling in React.
Downloads
5
Readme
@zedvision/emotion-react
Simple styling in React.
Install
yarn add @zedvision/emotion-react
Usage
/** @jsx jsx */
import { jsx, css, Global, ClassNames } from '@zedvision/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.