Package Exports
- @emotion/styled
- @emotion/styled/dist/styled.browser.cjs.js
- @emotion/styled/dist/styled.browser.esm.js
- @emotion/styled/dist/styled.cjs.js
- @emotion/styled/dist/styled.esm.js
- @emotion/styled/macro
- @emotion/styled/package.json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@emotion/styled) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@emotion/styled
The styled API for @emotion/core
Install
yarn add @emotion/core @emotion/styledUsage
import styled from '@emotion/styled'
let SomeComp = styled.div({
color: 'hotpink'
})
let AnotherComp = styled.div`
color: ${props => props.color};
`
render(
<SomeComp>
<AnotherComp color="green" />
</SomeComp>
)More documentation is available at https://emotion.sh/docs/styled.