yarn add styled-components@beta
What's Changed
- v6/beta 3 typescript fixes by @agriffis in #3828
- fix: don't send undefined props to DOM by @agriffis in #3839
- refactor(types): satisfy attrs scenarios with updated types, fix strict "as" type resolution by @probablyup in #3844
- test: kill disused validAttr test by @agriffis in #3840
- chore: add node 18 to test matrix by @alexandernanberg in #3837
Breaking changes in v6 (as of this version)
- 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.3...v6.0.0-beta.4