`styled(MantineButton)` 拒绝 6.4.2 中的所有属性(回退到 6.1.x)
作者: dennisoelkers创建于 2026年5月27日更新于 2026年8月11日
在 6.1.x 中,将 `React.ComponentPropsWithRef<typeof T>` 解析为 `{}` 的组件会生成一个足够宽容的样式化组件,可以在 JSX 调用点接受任意属性。在 6.4.2 中,相同的代码拒绝了每个属性,包括 `children`。
内容来源: styled-components/styled-components