npm.io
11.14.1 • Published 1 year ago

@emotion/styled

Licence
MIT
Version
11.14.1
Deps
6
Size
241 kB
Vulns
0
Weekly
0
Stars
18.0K

@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.