Skip to content
R

react-textarea-autosize

textarea component for React which grows with content

by andreypoppFree

#16in UI Libraries
0In stores

Description

react-textarea-autosize is a drop-in replacement for the textarea element in React that resizes itself as its content changes. The README de…

Highlights

  • Grows with content, native React
  • maxRows and minRows limits
  • onHeightChange callback
  • About 1.3 KB minified and gzipped

Ratings & Reviews

No ratings yet

Be the first to rate react-textarea-autosize.

People also visit

R

react-autosize-textarea

replacement for built-in textarea which auto resizes itself

UI Libraries
Launch
R

react-input-autosize

Auto-resizing Input Component for React

UI Libraries
Launch
R

react-textarea-autosize

component for React which grows with content

UI Libraries
Launch
R

rich-textarea

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

UI Libraries
Launch
R

react-textfit

React component to fit headlines and paragraphs into any element

UI Libraries
Launch
W

@webscopeio/react-textarea-autocomplete

Offers autocomplete over textarea in style of GitHub

UI Libraries
Launch

react-textarea-autosize FAQ

What is react-textarea-autosize?

A drop-in replacement for the React textarea that resizes itself as the content changes.

How do I install it?

Run npm install react-textarea-autosize, then use the component in place of a textarea.

How do I limit its height?

Use the maxRows prop to cap growth and minRows to set a minimum, and onHeightChange to react to height changes.

Which browsers does it support?

The README says it supports Internet Explorer 9 and above.

How do I focus it?

Get a ref to the inner textarea and call focus on it. All HTML attributes are passed through to the inner textarea, so autofocus also works.

What are the best react-textarea-autosize alternatives?

Popular alternatives to react-textarea-autosize include react-autosize-textarea, react-input-autosize and react-textarea-autosize. See all react-textarea-autosize alternatives

Developer Stuff

Badges