react-wrap-balancer icon indicating copy to clipboard operation
react-wrap-balancer copied to clipboard

native css variables for this

Open sakgoyal opened this issue 1 year ago • 1 comments

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?

sakgoyal avatar Apr 30 '24 00:04 sakgoyal

@sakgoyal This package is for cross-browser functionality. If you check Safari's compatibility, it only supports the latest version. And if you check the source code implementation, it checks if text-wrap: balance is supported, it defaults to that rather than the package code. So it does just what you're eluding to!

markpinero avatar May 10 '24 04:05 markpinero