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

react-text-truncate
LaunchReact-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
- 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-resizable-box
Launchre-resizable, which is listed here as react-resizable-box, is a resizable component for React. You wrap content in it and the user can drag its edges or corners to change its width and height. The component accepts a default size, or a cont
- 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-resizable-and-movable
Launchreact-resizable-and-movable is a React component for a box that can be both resized and dragged. You wrap your content in the component and the user can move it around and change its width and height with the mouse. The README covers instal
- E

@egjs/react-infinitegrid
Launch@egjs/react-infinitegrid is the React wrapper for InfiniteGrid, a JavaScript module that arranges cards and other elements of different sizes into an infinite grid. The core module keeps the number of DOM nodes it manages low at all times,
More like react-textfit

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

react-textfit
React component to fit headlines and paragraphs into any element
react-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-height and padding. The component has two modes. Single mode is for headlines, and by default it ignores the element's height so the text fits on one line. Multi mode is for paragraphs and wraps the text to fill the element. Props let you set the mode, decide whether the height is ignored in single mode, and set the minimum and maximum font size in pixels. A throttle prop controls how often the text is refitted on window resize, and an onReady callback runs once the text has been fitted. The README includes usage examples for headlines and paragraphs, and it links a demo. The project is MIT licensed and public on GitHub.
- Price
- Free
- Made by
- denis-sokolov
- Category
- UI Libraries
- Website
- github.com/malte-wessel/react-textfit

























