Skip to content
react-textfit

Free alternatives to react-textfit

200 free apps like react-textfit, closest match first.

Top picks

  1. R

    react-text-truncate

    Launch

    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

  2. R

    react-lines-ellipsis

    Launch

    react-lines-ellipsis is a multiline ellipsis component for React. It clamps a block of text to a maximum number of lines and shows an ellipsis at the end, so long text fits its box. You pass the text prop, and maxLine sets how many lines ar

  3. R

    react-simple-typewriter

    Launch

    A simple react component for adding a nice typewriter effect to your project.

  4. R

    react-autosize-textarea

    Launch

    react-autosize-textarea is a light React component that replaces the built-in textarea and automatically adjusts its height to fit the content as the user types. The project says it is perfectly compatible with React's default textarea, so

  5. R

    react-multiline-clamp

    Launch

    React component that uses the css line clamping to truncate given text in specified lines.

  6. R

    react-input-autosize

    Launch

    React-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

More like react-textfit

7
R

react-textarea-autosize

textarea component for React which grows with content

Launch
8
R

react-lorem-component

A component for React that renders paragraph or list item tags full of lorem

Launch
9
R

rich-textarea

A small customizable textarea for React to colorize, highlight, decorate texts

Launch
10
R

react-css-collapse

Component-wrapper for collapse animation with css for elements

Launch
11
F

@fawazahmed/react-native-read-more

A simple react native library

Launch
12
R

react-resizable-layout

Lightweight, accessible headless React component and hook

Launch
13
R

react-highlight-words

React component to highlight words within a larger body of text

Launch
14
H

@hixme-ui/text

hixme-ui text component. For all your communictation needs

Launch
15
W

@webscopeio/react-textarea-autocomplete

Offers autocomplete over textarea in style of GitHub

Launch
16
R

react-collapse

Component-wrapper for collapse animation for elements with variable

Launch
17
R

react-interpolate-component

A component for React that renders elements into a format string containing

Launch
18
R

react-resizable-box

Resizable component for React. #reactjs

Launch
19
R

react-headroom

Hide your header until you need it. React.js port of headroom.js

Launch
20
R

react-fast-marquee

A lightweight React component

Launch
21
R

react-fontawesome

A React component for the font-awesome icon library

Launch
22
R

react-icon-cloud

A React component for rendering an interactive img or word cloud on canvas

Launch
23
R

react-highlighter

Highlight select fragments of texts

Launch
24
R

react-contenteditable

React component representing an element with editable contents

Launch
25
R

react-titled

To set document.title with ease. Nested. Flexible

Launch
26
S

style-it

Component for writing plaintext CSS in React apps -- isomorphic, scoped

Launch
27
R

react-collapsible

React component to wrap content in Collapsible element

Launch
28
R

react-native-responsive-fontsize

Simple method for resposive fontSize based on screen-size of the device in

Launch
29
R

react-truncate-string

> Truncate strings like butter

Launch
30
R

react-animate-height

Lightweight React component for animating height using CSS transitions

Launch
31
R

react-typeahead

React-based typeahead and typeahead-tokenizer

Launch
32
R

react-meta-tags

Handle document meta/head tags in isomorphic react with ease

Launch
33
R

react-copy-to-clipboard

Copy-to-clipboard React component

Launch
34
R

react-inner-image-zoom

A React component for magnifying an image within its parent container

Launch
35
N

@nine-thirty-five/material-symbols-react

Flexible, tree-shakeable React package for Google's Material Symbols

Launch
36
R

react-feather

React component for Feather icons

Launch
37
R

react-number-format

React component to format number in an input or as a text

Launch
38
R

react-height

Component-wrapper to determine and report children elements height

Launch
39
R

react-container-query

Container Query for React Component

Launch
40
R

react-resizable-and-movable

Resizable and movable component for React

Launch
41
R

react-truncate-inside

React component that truncates text in the middle with an ellipsis

Launch
42
R

react-linkify

React component to parse links (urls, emails, etc.) in text into clickable links

Launch
43
G

gatsby-background-image

Lazy-loading React background-image component

Launch
44
R

react-easy-panzoom

Wrapper to enable pan and zoom for any React component

Launch
45
T

typography

A powerful toolkit for building websites with beautiful typography

Launch
46
R

react-smooth-collapse

React component for animating showing or hiding an element

Launch
47
R

react-sparklines

Beautiful and expressive Sparklines React component

Launch
48
E

@egjs/react-infinitegrid

A module used to arrange card elements including content infinitely on a grid

Launch
49
T

@tinymce/tinymce-react

Official React component for the TinyMCE rich text editor

Launch
50
D

@daformat/react-headless-carousel

A react headless carousel component

Launch

About react-textfit

R

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