You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 years ago | |
|---|---|---|
| .. | ||
| base | 2 years ago | |
| dist | 2 years ago | |
| src | 2 years ago | |
| types | 2 years ago | |
| LICENSE | 2 years ago | |
| README.md | 2 years ago | |
| macro.d.mts | 2 years ago | |
| macro.d.ts | 2 years ago | |
| macro.js | 2 years ago | |
| macro.js.flow | 2 years ago | |
| package.json | 2 years ago | |
README.md
@emotion/styled
The styled API for @emotion/react
Install
yarn add @emotion/react @emotion/styled
Usage
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.