yarn add styled-components@beta
What's Changed
- fix(types): allow interpolating false by @agriffis in #3799
- Disallow mix of $as and as by @agriffis in #3801
- chore: update typescript by @agriffis in #3803
- fix: typescript typo by @agriffis in #3804
- fix: css vars mangled by hyphenateStyleName by @agriffis in #3812
- collected fixes for v6 typescript by @agriffis in #3809
- chore: correctly link local styled-components to sandbox by @alexandernanberg in #3822
Breaking changes in v6
- now using
stylis
v4 (if usingstylis-plugin-rtl
you'll need to upgrade to the newer version) - dropped
$as
and$forwardedAs
props (useas
orforwardedAs
- dropped automatic prop filtering, use transient props (
$
prefix) for stuff you don't want to be passed to child component / HTML - node >= 14 needed
Full Changelog: v6.0.0-beta.2...v6.0.0-beta.3