npm styled-components 6.0.0-beta.7
v6.0.0-beta.7

latest releases: 6.1.13, 6.1.12, 6.1.11...
21 months ago
yarn add styled-components@beta

What's Changed

  • feat(StyleSheetManager): add optional namespacing (#3881); replaces functionality in the babel plugin to be performed at runtime
  • breaking refactor: remove deprecated withComponent API (87f511a); use "as" prop instead
  • feat: add styled as named export as well (5aed9e3); note that this syntax will probably not work with the babel plugin until it is updated
  • chore: dependency maintenance, including rollup upgrades

Breaking changes in v6 (as of this version)

  • now using stylis v4 (if using stylis-plugin-rtl you'll need to upgrade to the newer version)
  • 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.6...v6.0.0-beta.7

Don't miss a new styled-components release

NewReleases is sending notifications on new releases.