我正在尝试向我的 StyledComponents (Emotion-React) 添加类型。假设我有一个样式化的 Button 组件,当我使用通用 StyledComponent 声明它的类型时,我需要向它传递 3 个类型变量:
const Button : StyledComponent<Props, InnerProps, Theme> =
styled("button")`
cssProp:cssVal:
`
Props 和 InnerProps 有什么区别?InnerProps 只是孩子吗?