yarn add styled-components@beta
What's Changed
- fix: add
<use>
to domElements by @shanpriyan in #3901 - refactor(typings): revise to support more attrs patterns by @probablyup in #3906
New Contributors
- @shanpriyan made their first contribution in #3901
Breaking changes in v6
- now using
stylis
v4 (if usingstylis-plugin-rtl
you'll need to upgrade to the newer version) - styled-components now provides its own types; if you installed
@types/styled-components
in the past, you'll want to remove it - 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 - dropped deprecated
withComponent
API (87f511a); use "as" prop instead - node >= 14 needed
Full Changelog: v6.0.0-beta.8...v6.0.0-beta.9