styled-components
6.6.0 · 12 Oct 2026MIT14.8M / weekRepositoryHomepagenpmAtom feed
Upgrading styled-components From 5.3.11 to 6.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 8
- changes to make
- 0
- advisories fixed
- 1
- new
- 1
- fix
Start here
Before you upgrade
Tick each one off as you go- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
Release by release
- Breaking
Now using
stylisv4 (if usingstylis-plugin-rtlyou'll need to upgrade to the newer version) - Breaking
styled-components now provides its own types; if you installed
@types/styled-componentsin the past, you'll want to remove it - Breaking
Dropped
$asand$forwardedAsprops (useasorforwardedAs) - Breaking
Dropped automatic prop filtering; use transient props (
$prefix) for stuff you don't want to be passed to child component / HTML
- Breaking
1 other line we could not sort, mostly version bumps
- 6.0.0
Reduced some sources of unnecessary branching logic
1 internal line (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.