Open source alternatives to react-text-truncate
200 open source apps like react-text-truncate, closest match first.
Top picks
- R

react-textfit
Launchreact-textfit is a React component that fits headlines and paragraphs into any element by sizing their text. It uses a binary search to find the right font size quickly, and the README says it works with any style setup, including line-heig
- R

react-vtree
Launchreact-vtree is a React component library for rendering large tree structures efficiently. It is built on top of react-window, which renders only the rows that are visible, so long trees stay responsive. It provides two components, FixedSize
- R

react-input-autosize
LaunchReact-input-autosize is a text input component for React that resizes itself to fit its current content. It wraps the input so it can measure the size of its value, and otherwise behaves much like a standard React input. You can install it
- R

react-highlighter
Launchreact-highlighter is a React component that highlights selected fragments of a string. You give it the text to find, as a string or a regular expression, and it highlights the matching parts using an HTML element, a class, or both. Its prop
- R

react-markdown
Launchreact-markdown is a React component that renders Markdown as React elements. You pass it a Markdown string and it returns the page content, without using dangerouslySetInnerHTML, so it is safe by default against cross-site scripting. You ca
- R

react-highlight
Launchreact-highlight is a React component for syntax highlighting, built on the highlight.js library. You pass a code snippet as the children of the Highlight component as a string, and set its language through a className, so the code is colour
More like react-text-truncate

react-tag-input
React tags is a fantastically simple tagging component for your React projects

@egjs/react-infinitegrid
A module used to arrange card elements including content infinitely on a grid

react-diff-viewer-continued
Continuation of a simple and beautiful text diff viewer component
About react-text-truncate

react-text-truncate
Truncate text for React.js
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 meant for multi-line truncation, so a paragraph or a card description can be cut to fit a fixed space. You install it and use it in place of plain text in your component, and the README includes markup examples and a demo. The FAQ says that if the component is hidden and then displayed again, such as when a tab or panel changes its display style, you need to trigger the update manually so the truncation is recalculated. It does not support Internet Explorer 10 or older, which the README describes as no longer supported by Microsoft. The project is public on GitHub, and its install and usage steps are shown in the README. Use it when a React app has text blocks that must stay within a fixed number of lines, such as article previews or listing cards.
- Price
- Free
- Made by
- shinychang
- Category
- UI Libraries
- Website
- github.com/shinychang/react-text-truncate

































