Packages

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…

Other targets from 5.3.11Latest6.6.0
  1. 5.3.11yours
  2. 6.0.0target
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

  1. 6.0.0

    Migration needed28 Jun 20231 new · 1 fix
    • Breaking

      Now using stylis v4 (if using stylis-plugin-rtl you'll need to upgrade to the newer version)

    • Breaking

      styled-components now provides its own types; if you installed @types/styled-components in the past, you'll want to remove it

    • Breaking

      Dropped $as and $forwardedAs props (use as or forwardedAs)

    • Breaking

      Dropped automatic prop filtering; use transient props ($ prefix) for stuff you don't want to be passed to child component / HTML

1 other line we could not sort, mostly version bumps
  • Reduced some sources of unnecessary branching logic

    6.0.0

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.