Skip to content
react-textfit

Alternatives to react-textfit

200 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-textarea-autosize

    Launch

    component for React which grows with content.

  3. 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

  4. R

    react-simple-typewriter

    Launch

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

  5. 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

  6. R

    react-multiline-clamp

    Launch

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

More like react-textfit

7
R

react-input-autosize

Auto-resizing Input Component for React

Launch
8
R

react-textarea-autosize

textarea component for React which grows with content

Launch
9
R

react-lorem-component

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

Launch
10
R

rich-textarea

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

Launch
11
R

react-css-collapse

Component-wrapper for collapse animation with css for elements

Launch
12
F

@fawazahmed/react-native-read-more

A simple react native library

Launch
13
R

react-resizable-layout

Lightweight, accessible headless React component and hook

Launch
14
R

react-highlight-words

React component to highlight words within a larger body of text

Launch
15
H

@hixme-ui/text

hixme-ui text component. For all your communictation needs

Launch
16
W

@webscopeio/react-textarea-autocomplete

Offers autocomplete over textarea in style of GitHub

Launch
17
R

react-collapse

Component-wrapper for collapse animation for elements with variable

Launch
18
R

react-interpolate-component

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

Launch
19
I

interweave

React library to safely render HTML, filter attributes, autowrap text

Launch
20
R

react-resizable-box

Resizable component for React. #reactjs

Launch
21
R

react-headroom

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

Launch
22
R

react-fast-marquee

A lightweight React component

Launch
23
R

react-fontawesome

A React component for the font-awesome icon library

Launch
24
R

react-icon-cloud

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

Launch
25
R

react-highlighter

Highlight select fragments of texts

Launch
26
R

react-contenteditable

React component representing an element with editable contents

Launch
27
R

react-titled

To set document.title with ease. Nested. Flexible

Launch
28
S

style-it

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

Launch
29
R

react-collapsible

React component to wrap content in Collapsible element

Launch
30
R

react-headings

Auto-increment your HTML headings

Launch
31
R

react-native-responsive-fontsize

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

Launch
32
R

react-imgix

Add fast, responsive images as an image, picture, or background!

Launch
33
R

react-truncate-string

> Truncate strings like butter

Launch
34
R

react-animate-height

Lightweight React component for animating height using CSS transitions

Launch
35
R

react-typeahead

React-based typeahead and typeahead-tokenizer

Launch
36
R

react-meta-tags

Handle document meta/head tags in isomorphic react with ease

Launch
37
R

react-copy-to-clipboard

Copy-to-clipboard React component

Launch
38
R

react-inner-image-zoom

A React component for magnifying an image within its parent container

Launch
39
N

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

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

Launch
40
R

react-feather

React component for Feather icons

Launch
41
R

react-number-format

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

Launch
42
R

react-height

Component-wrapper to determine and report children elements height

Launch
43
R

react-container-query

Container Query for React Component

Launch
44
R

react-resizable-and-movable

Resizable and movable component for React

Launch
45
R

react-truncate-inside

React component that truncates text in the middle with an ellipsis

Launch
46
R

react-linkify

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

Launch
47
G

gatsby-background-image

Lazy-loading React background-image component

Launch
48
R

react-easy-panzoom

Wrapper to enable pan and zoom for any React component

Launch
49
T

typography

A powerful toolkit for building websites with beautiful typography

Launch
50
R

react-smooth-collapse

React component for animating showing or hiding an element

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