1
0
Fork 0
react-playground/node_modules/@emotion/styled
2025-08-25 17:46:11 +02:00
..
base worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
dist worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
src worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
LICENSE worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
macro.d.mts worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
macro.d.ts worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
macro.js worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
package.json worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
README.md worked on GarageApp stuff 2025-08-25 17:46:11 +02: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.