react-wrap-balancer
react-wrap-balancer copied to clipboard
Simple React Component That Makes Titles More Readable
what is the difference in using this package versus just applying the `text-wrap : pretty` property for text? using native css should be much more efficient wouldn't it?
In browsers like older Safaris that don't support `ResizeObserver`, the [console warning](https://github.com/shuding/react-wrap-balancer/blob/7bd6981954fd1afa2f2614b3e245ada8570213eb/src/index.tsx#L81) fails with `Can't find variable: process`. I suspect this is because the [`relayout` function is being converted](https://github.com/shuding/react-wrap-balancer/blob/7bd6981954fd1afa2f2614b3e245ada8570213eb/src/index.tsx#L92) to...
Hi, this is a great library, thanks for developing it :) The problem I stumbled upon (and am fixing in this PR) is as follows. There are two ways to...
Hi there, While developing locally in Safari with webpack-dev-server I kept getting the error messages thrown when using `` and resizing the window. I tried to debug this for a...
I've been using this in my Next.js projects and it works great. I'm working on an Astro project right now and can't get it to work, even though I have...
Fixes #23 A large part of `react-wrap-balancer` can run on the server. I've moved all code that strictly needs to run on the client to `client.ts`. This allowed both `Balancer`...
I'm creating a blog with next 13 and chakraUI and I've noticed that Balancer doesn't show the text going to the second line. This image shows that everything is fine...
It's not needed to include the script content in the client bundle and hydrate `` if you import it from a server component.
First of all, thanks for the library - I have enjoyed using it on a variety of pages and find it works very well for my purposes. I have ran...
It would be nice to be able to change the default value of `ratio` via ``. Looks like `` currently only accepts `nonce` (not yet documented in [`README.md`](https://github.com/shuding/react-wrap-balancer/blob/d6ae52f/README.md?plain=1#L41-L58)): https://github.com/shuding/react-wrap-balancer/blob/d6ae52f/src/index.tsx#L132-L145 Thanks!...