styled-components
6.6.0 · 12 Oct 2026MIT14.8M / weekRepositoryHomepagenpmAtom feed
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
asprop under Preact'sreact-compat.Respect a custom
toStringon 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
asprop with a non-string type (such as Next.jsLink'sas?: Url). The styled component now accepts either the styled-components polymorphism value or the wrapped component's ownastype, 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
processglobal.
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.