Jenia Brook
jenia.codes
Jenia Brook
@jenia.codes
⌨️ I have a keyboard
🎨 Designing in the browser
🔗 jenia.codes
Hi @mattpocock.com and happy christmas!

Do we have a way in TS to constrain what type of component the prop can accept?

For example, I would like to accept in `leftIcon` and `rightIcon` only component.
December 26, 2024 at 7:25 AM