{"library":"react-wrap-balancer","type":"library","category":null,"description":"React Wrap Balancer is a React component designed to improve the readability of text, particularly titles and headings, by intelligently balancing line wraps to prevent awkward single-word lines or uneven text blocks. Its current stable version is 1.1.1, with an active release cadence that frequently introduces bug fixes and minor enhancements. A key differentiator is its ability to automatically detect and prioritize the native CSS `text-wrap: balance` property for optimal performance, falling back to a JavaScript-based solution when native browser support is unavailable. For applications utilizing multiple `<Balancer>` instances, the optional `<Provider>` component is recommended to centralize and share the re-balancing logic, which reduces HTML size and improves overall efficiency, especially when the native CSS feature is not available. The library ships with TypeScript types, ensuring a robust developer experience.","language":"javascript","status":"active","version":"1.1.1","tags":["javascript","react","wrapping","text","typography","typescript"],"install":[{"cmd":"npm install react-wrap-balancer","imports":["import Balancer from 'react-wrap-balancer'","import { Provider } from 'react-wrap-balancer'","import type { BalancerProps } from 'react-wrap-balancer'"]},{"cmd":"yarn add react-wrap-balancer","imports":[]},{"cmd":"pnpm add react-wrap-balancer","imports":[]}],"homepage":"https://react-wrap-balancer.vercel.app","github":"https://github.com/shuding/react-wrap-balancer","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/react-wrap-balancer","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/react-wrap-balancer/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}