amis-rpc-design/node_modules/@emotion/styled
2023-10-07 19:42:30 +08:00
..
base v1.0.0 2023-10-07 19:42:30 +08:00
dist v1.0.0 2023-10-07 19:42:30 +08:00
src v1.0.0 2023-10-07 19:42:30 +08:00
types v1.0.0 2023-10-07 19:42:30 +08:00
LICENSE v1.0.0 2023-10-07 19:42:30 +08:00
macro.d.mts v1.0.0 2023-10-07 19:42:30 +08:00
macro.d.ts v1.0.0 2023-10-07 19:42:30 +08:00
macro.js v1.0.0 2023-10-07 19:42:30 +08:00
macro.js.flow v1.0.0 2023-10-07 19:42:30 +08:00
package.json v1.0.0 2023-10-07 19:42:30 +08:00
README.md v1.0.0 2023-10-07 19:42:30 +08:00

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