matt-d-rat

matt-d-rat/react-middle-truncate

A React component for intelligently truncating text in the middle of the string.

JavaScript
30
6
MIT License

React-middle-truncate is a React component that intelligently truncates text in the middle of a string with an ellipsis, making it ideal for displaying long strings like URLs or connection strings where the beginning and end are more important than the middle. It dynamically calculates text width using Canvas and allows customization of truncation points using either character counts or regular expressions.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

matt-d-rat's profile
matt-d-rat
31 contributions
albinotonnina's profile
albinotonnina
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet