# Andarist/react-textarea-autosize

<textarea /> component for React which grows with content

Repository: https://github.com/Andarist/react-textarea-autosize
Canonical: https://ross.abutalabs.com/products/react-textarea-autosize
Homepage: http://andarist.github.io/react-textarea-autosize/
Language: TypeScript
License: MIT
License Family: permissive
Topics: react, react-component, javascript
Last push: 2025-03-30T22:13:12+00:00

## Health v2 (maintenance only)
Score: 36/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 14, release rhythm 28, longevity 100
- inputs: {"age_days": 4769, "days_push": 521, "days_rel": 521, "gap_med": 31, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2409, forks 247 (observed 2026-08-28T04:06:44.296613+00:00)

## What it is
A drop-in React replacement for the native <textarea> element that automatically grows and shrinks with its content. It is a tiny (~1.3KB gzipped) TypeScript component supporting min/max row constraints and height-change callbacks.

## Use cases
- auto-resize a textarea as the user types
- build a chat input that grows with the message
- limit a textarea to a maximum number of visible rows
- set a minimum height for a comment box
- replace a plain textarea without changing its props
- get notified when the textarea height changes

## When to choose
- you use React and need a self-sizing textarea with minimal bundle cost
- you want min/max row constraints and height-change callbacks out of the box
- you need a drop-in replacement that forwards all native textarea props

## When to avoid
- you are not using React
- you need autosizing for other form elements or non-React frameworks
- you need IE8 or older browser support

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, form-handling, frontend-framework
- domain: web-development, frontend
- platform: browser
- tags: react, textarea, autosize, react-component, typescript, web-server, nodejs

## Member repositories
- Andarist/react-textarea-autosize (main) score 36

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:44.296613+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:34:00.652268+00:00, confidence not recorded.
  - readme: https://github.com/Andarist/react-textarea-autosize (fetched 2026-08-28T04:06:44.296613+00:00, sha 01c94e4d17c8)
  - homepage: http://andarist.github.io/react-textarea-autosize/ (fetched 2026-08-29T10:14:25.734006+00:00, sha dbad50c02bea)
  - registry_npm: https://registry.npmjs.org/react-textarea-autosize (fetched 2026-08-29T10:14:25.743233+00:00, sha a58c1bc6ca76)
- Data as of 2026-08-30T08:39:29.467469+00:00.
