FrontPastel/node_modules/@emotion/styled
NataliaCancinoV aa2823eee5 Primer commit 2024-04-17 07:55:11 -06:00
..
base Primer commit 2024-04-17 07:55:11 -06:00
dist Primer commit 2024-04-17 07:55:11 -06:00
src Primer commit 2024-04-17 07:55:11 -06:00
types Primer commit 2024-04-17 07:55:11 -06:00
LICENSE Primer commit 2024-04-17 07:55:11 -06:00
README.md Primer commit 2024-04-17 07:55:11 -06:00
macro.d.mts Primer commit 2024-04-17 07:55:11 -06:00
macro.d.ts Primer commit 2024-04-17 07:55:11 -06:00
macro.js Primer commit 2024-04-17 07:55:11 -06:00
macro.js.flow Primer commit 2024-04-17 07:55:11 -06:00
package.json Primer commit 2024-04-17 07:55:11 -06:00

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.