Simple React Component That Makes Titles More Readable
MIT License
Bot releases are visible (Hide)
children:
typing in BalancerOwnProps
by @anulman in https://github.com/shuding/react-wrap-balancer/pull/83
as
prop onto root element by @hasparus in https://github.com/shuding/react-wrap-balancer/pull/87
Full Changelog: https://github.com/shuding/react-wrap-balancer/compare/1.1.0...1.1.1
Published by shuding about 1 year ago
preferNative
option by @lucasweng in https://github.com/shuding/react-wrap-balancer/pull/77
Balancer
not correctly setting text-wrap: balance by @lucasweng in https://github.com/shuding/react-wrap-balancer/pull/80
Full Changelog: https://github.com/shuding/react-wrap-balancer/compare/1.0.0...1.1.0
Published by shuding over 1 year ago
V1.0 is here! Major new feature from this release is that <Balancer>
will now switch to use the native CSS text-wrap: balance
if it's available. This improves the runtime performance quite a lot!
With that, it's even more important to always add a <Provider>
to your app as that makes the CSS feature detection logic shared across all <Balancer>
components.
Lastly, if the native CSS balance is available, the ratio
option will be ignored because that's not part of the text-wrap: balance
standard.
repository
, homepage
and bugs
to package.json
by @kachkaev in https://github.com/shuding/react-wrap-balancer/pull/70
text-wrap: balance
if supported by @shuding in https://github.com/shuding/react-wrap-balancer/pull/72
Full Changelog: https://github.com/shuding/react-wrap-balancer/compare/0.5.0...1.0.0
nonce
propSince React Wrap Balancer generates inlined script tags under the hood, you can now set the nonce
prop for them:
<Balancer nonce="...">
// => <script nonce="...">
By adding a workaround for useId
, we now have support for React 16.8.0+.
See the full changelog below.
as
component by @lucasweng in https://github.com/shuding/react-wrap-balancer/pull/56
nonce
prop for CSP by @lucasweng in https://github.com/shuding/react-wrap-balancer/pull/61
Full Changelog: https://github.com/shuding/react-wrap-balancer/compare/0.4.1...0.5.0
Published by shuding over 1 year ago
Full Changelog: https://github.com/shuding/react-wrap-balancer/compare/0.4.0...0.4.1
Published by shuding over 1 year ago
<Balancer>
wrappers during development by @shuding in https://github.com/shuding/react-wrap-balancer/pull/33
Full Changelog: https://github.com/shuding/react-wrap-balancer/compare/0.3.0...0.4.0
Published by shuding almost 2 years ago
This new release has improved types for <Balancer>
's props (#14) and a critical bug fix when web font is used (#18) with a new API.
It's not breaking and recommended to upgrade.
If you have multiple <Balancer>
components used, it’s recommended (but optional) to also use <Provider>
to wrap the entire app. This will make them share the re-balance logic and reduce the HTML size:
import { Provider } from 'react-wrap-balancer'
// ...
function App() {
return (
<Provider>
<MyApp/>
</Provider>
)
}
To learn more about the bug and the fix, check out #20.
Full Changelog: https://github.com/shuding/react-wrap-balancer/compare/0.2.4...0.3.0
Published by shuding almost 2 years ago
Full Changelog: https://github.com/shuding/react-wrap-balancer/commits/0.2.4