yarn styled-components 6.0.0-beta.12
v6.0.0-beta.12

latest releases: 6.1.11, 6.1.10-test.1, 6.1.10-test.0...
16 months ago
yarn add styled-components@beta

Changed in this version

  • fix(types): restore exotic component prop passing (f678107); this restores React.ComponentProps<typeof MyStyledComponent> support
  • add "exports" config in package.json
  • minor dependency updates
  • thank you @marmite22 for updating a test that was not getting properly run

Breaking changes in v6

  • now using stylis v4 (if using stylis-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 (use as or forwardedAs)
  • 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.11...v6.0.0-beta.12

Don't miss a new styled-components release

NewReleases is sending notifications on new releases.