What's the recommended way to type useRef with emotion styled components
For example: So far, I've been manually searching for what type the component is and typing it in. For example, above it would be useRef<HTMLDivElement>. Is there a more type-friendly way of doing this? Maybe something akin to useRef<HTMLType<Wrapper>>? Thank you!!
use css prop with a custom component
Hi, I posted this question in stackoverflow: https://stackoverflow.com/questions/66746494/emotion-use-css-prop-with-custom-components However, I am not sure if the real question is whether my intended usage is a good way to use emotion? The fact that I couldn't google any…
Using css`...` in Styled Component syntax
My team and I started to use Emotion with the Styled Component syntax and so far it's been pretty straightforward to use. However, at some point we came across the following syntax when there are multiple properties that need something from the props: Another colleague didn't…
Help with TS-based + emotion design system error
Hi. I have a React TS-based design system built with emotion, styled-system, and theme-ui and am encountering a TS error I can't seem to resolve. It seems like a simple fix, I just haven't been able to debug it... I'm seeing the issue in…