@emotion/styled

v10.0.23(not latest)
  • Types
  • ESM
  • CJS
License
MIT
Install Size
76.1 kB/-
Vulns
0
Published

Get started

$npm install @emotion/styled@10.0.23
$pnpm add @emotion/styled@10.0.23
$yarn add @emotion/styled@10.0.23
$bun add @emotion/styled@10.0.23
$deno add npm:@emotion/styled@10.0.23
$vlt install @emotion/styled@10.0.23

Readme

@emotion/styled

The styled API for @emotion/core

Install

yarn add @emotion/core @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.