github styled-components/styled-components v6.0.0-beta.8

latest releases: v6.1.8, v6.1.7, v6.1.6...
pre-release16 months ago
yarn add styled-components@beta

What's Changed

  • revert rollup upgrade to resolve issues with cjs<>es default import interop
  • refactor(ThemeProvider): allow multiple children (871435c)

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.7...v6.0.0-beta.8

Don't miss a new styled-components release

NewReleases is sending notifications on new releases.