Packages

styled-components

6.6.0 · 12 Oct 2026MIT14.8M / weekRepositoryHomepagenpmAtom feed

Your version

6.4.2

19 May 2026Where it was published

6.6.0 is the newest release of 6.x.

In short

5 fixed

Release note

Patch Changes

  • Restore TypeScript prop autocomplete inside the JSX of a styled component once the first attribute is typed.

  • Apply all chain levels' styles when an extended styled component renders with the as prop under Preact's react-compat.

  • Respect a custom toString on plain value objects (e.g. design tokens) when interpolated into a styled component, rather than walking the object's keys as CSS declarations.

  • Fix a TypeScript error when wrapping a component whose props include an as prop with a non-string type (such as Next.js Link's as?: Url). The styled component now accepts either the styled-components polymorphism value or the wrapped component's own as type, so spreading the wrapped component's props onto the styled component is assignable again.

  • Restore reliable styling in production browser bundles built without a runtime process global.

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.