Skip to content

Add styled-components Adapter or Example how to implement custom style attribute for CSS-in-JS #124

@FrameMuse

Description

@FrameMuse

Desired code

import { css } from "styled-components"

function Component() {
  return (
    <div style={styledStyle}>
      <h2>Title</h2>
      <p>Description</p>
    </div>
  )
}

const styledStyle = css`
  background: red;

  &:hover {
    background: blue;
  }
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions