Emotion 11: How do compose style overrides passed in as a prop to component (typescript). #2178
Unanswered
eikonomega
asked this question in
Q&A
Replies: 1 comment
-
The type for this should be a subset of the types allowed for the InterpolationPrimitive would do the trick:
LGTM |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Friends,
So, I'm running into a little trouble with how to appropriately type things after upgrading to Emotion 11.
Basically, I've got a simple little component that allows for style overrides to passed in as a prop called
containerStyles
.Previously, I was able to type this as
CSSObject
from the library, but now this throws an typescript error. 😭So, 2 questions:
containerStyles
prop in Emotion 11?css
prop in thediv
element that is returned by the function?Beta Was this translation helpful? Give feedback.
All reactions