How to create binding for styled-components?

I would like to extend styles using something like:

const TomatoButton = styled<{color?: string}>(Button)`
  color: ${props => props.color || "white"};
  border-color: tomato;

But I can’t find a way to “compose” the props with additional arguments

I don’t have an exact answer, but there is styled-ppx which is pretty good

Styled ppx is good but unfortunately it doesn’t work with React Native :confused:

Hey, open an issue and help me understand what’s needed to support React Native.

1 Like


1 Like