Skip to content
R

react-text-truncate

Truncate text for React.js

by shinychangFree

#453in UI Libraries
0In stores

Description

React-Text-Truncate is a React component that shortens text to a set number of lines and adds an ellipsis when the text is too long. It is m…

Highlights

  • Multi-line text truncation with an ellipsis
  • Works as a React component
  • Demo and markup examples in the README
  • Manual update when a hidden element is shown again

Ratings & Reviews

No ratings yet

Be the first to rate react-text-truncate.

People also visit

R

react-lines-ellipsis

Simple multiline ellipsis component for React.JS

UI Libraries
Launch
R

react-multiline-clamp

React component that uses the css line clamping

UI Libraries
Launch
R

react-truncate-inside

React component that truncates text in the middle with an ellipsis

UI Libraries
Launch
R

react-truncate-string

> Truncate strings like butter

UI Libraries
Launch
R

react-textfit

React component to fit headlines and paragraphs into any element

UI Libraries
Launch
F

@fawazahmed/react-native-read-more

A simple react native library

UI Libraries
Launch

react-text-truncate FAQ

What does react-text-truncate do?

It cuts text to a set number of lines in a React component and shows an ellipsis when the text is longer.

Is it free?

Yes. The source is public on GitHub and listed as open source.

Why is my truncated text not showing after a change?

The FAQ says that if the component was hidden and is displayed again after a display style change, you must trigger an update manually.

Which browsers are supported?

The FAQ says Internet Explorer 10 and below are not supported.

What are the best react-text-truncate alternatives?

Popular alternatives to react-text-truncate include react-lines-ellipsis, react-multiline-clamp and react-truncate-inside. See all react-text-truncate alternatives

Developer Stuff

Badges