Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-wrap-balancer

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-wrap-balancer

Better text wrapping.

  • 0.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
146K
increased by5.91%
Maintainers
1
Weekly downloads
 
Created

What is react-wrap-balancer?

The react-wrap-balancer package is designed to optimize the wrapping of text in React applications. It ensures that text is balanced across lines, improving readability and aesthetics.

What are react-wrap-balancer's main functionalities?

Basic Text Balancing

This feature allows you to wrap text within the WrapBalancer component to ensure it is balanced across lines.

import { WrapBalancer } from 'react-wrap-balancer';

function App() {
  return (
    <WrapBalancer>
      <p>This is a sample text that will be balanced across lines for better readability.</p>
    </WrapBalancer>
  );
}

Custom Balancing Options

This feature allows you to customize the balancing behavior by passing options such as maxWidth to the WrapBalancer component.

import { WrapBalancer } from 'react-wrap-balancer';

function App() {
  return (
    <WrapBalancer options={{ maxWidth: 500 }}>
      <p>This text will be balanced with a maximum width of 500 pixels.</p>
    </WrapBalancer>
  );
}

Other packages similar to react-wrap-balancer

Keywords

FAQs

Package last updated on 20 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc