Skip to content
react-textfit

Open source alternatives to react-textfit

200 open source 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-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

  3. R

    react-resizable-box

    Launch

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

  4. R

    react-highlighter

    Launch

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

  5. R

    react-resizable-and-movable

    Launch

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

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

7
R

react-markdown

React component to render markdown

Launch
8
R

react-tinymce

React TinyMCE component

Launch
9
N

number-flow

React component for number transitions and formatting

Launch
10
R

react-vtree

React component for efficiently rendering large tree structures

Launch
11
R

react-document-title

A declarative, nested, stateful document.title for React

Launch
12
R

react-photo-album

Responsive photo gallery component for React

Launch
13
P

Parsed Text

[222] - Interactive text based on content recognition

Launch
14
R

react-grid-gallery

Justified gallery component for React

Launch
15
R

react-quilljs

React Hook Wrapper for Quill, powerful rich text editor

Launch
16
R

react-list

A versatile infinite scroll React component

Launch
17
G

Great UI

Copy-paste React and Tailwind CSS components

Launch
18
R

react-loading

React loading component

Launch
19
Z

zoom-image

A little yet powerful framework agnostic headless library

Launch
20
R

react-intense

A React component for viewing large images up close

Launch
21
E

easeui

Open-source React components with natural motion, installable as source

Launch
22
R

react-highlight-popover

Headless component for text selection popovers

Launch
23
R

reactive-button

3D animated react button component with progress bar

Launch
24
R

react-card-flip

ReactCardFlip

Launch
25
Y

yet-another-react-lightbox

Modern React lightbox component

Launch
26
R

react-highlight

React component for syntax highlighting

Launch
27
C

Componentry

Customizable React UI primitives and components

Launch
28
R

React PDF

Display PDFs in your React app as easily as if they were images

Launch
29
R

Readme Typing SVG

Dynamically generated, customizable SVG

Launch
30
R

react-cropper

Cropper as React Component

Launch
31
R

@restart/ui

Utilities for creating robust overlay components

Launch
32
F

framecn

Beautiful videos, made simple

Launch
33
E

Expo Pretext

Predict React Native text heights before rendering

Launch
34
R

react-infinite

A browser-ready efficient scrolling container based on UITableView

Launch
35
R

react-document-meta

Declarative, nested and stateful HTML document meta tags for React

Launch
36
G

gammaui

Beautifully designed landing page components built

Launch
37
S

shadcn-font-picker

Font picker using shadcn/ui components and google font API

Launch
38
R

react-simple-dropdown

Non-prescriptive React.js dropdown toolkit

Launch
39
G

grootstudio

A premium, open source component registry

Launch
40
C

crafterui

Motion and interaction components for React and Tailwind

Launch
41
R

react-pdf-highlighter

Set of React components for PDF annotation

Launch
42
H

honestui

React UI components, animated interactions, shaders

Launch
43
C

Collapsed

Headless UI for for creating flexible

Launch
44
R

react-tag-input

React tags is a fantastically simple tagging component for your React projects

Launch
45
R

react-scrollchor

A React component for scrolling to #hash links with smooth animations

Launch
46
R

react-rating

A rating react component with custom symbols

Launch
47
M

motion-lexicon

Open-source shadcn registry of animated React components, page blocks

Launch
48
R

react-pro-sidebar

high level and customizable side navigation

Launch
49
R

react-player

A React component for playing a variety of URLs, including file paths, Mux

Launch
50
C

contentbit

React components that render Content Blocks: plain Markdown

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