To use styled components syntax, install @emotion/styled package:
Use static selectors to access component Styles API:
emotion.d.ts declaration file to your
src folder or to any place included in your
Emotion cannot correctly extract prop types from polymorphic components.
To add styles to such components with
@emotion/styled, you will need to redefine polymorphic component type
with createPolymorphicComponent function: