Skip to content

Styled-Component Object Notation Example #27

Description

@jvanderen1

I would like to use facepaint inside an object, but I am not sure this is possible.

Something like:

const mq = facepaint([
  '@media(min-width: 420px)',
])
const Container = styled.div({
  ...mq({
    color: ['#f2f', '#00ff00'],
  }),
})

Is this not possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions