Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 913 Bytes

README.md

File metadata and controls

43 lines (33 loc) · 913 Bytes

CSS Resize Polyfill

Resize handler for textarea or any given element. Supports Internet Explorer, Edge, Firefox, Chrome, Safari etc.

Browser support

link to CanIUse

Preview

Edge Preview

How to use it

React integration

It's trivial to integrate with react:

import resizePolyfill from 'resize-polyfill';

class MyComponent {
  render (
    <textarea ref={(el) => {
      if (el) {
        resizePolyfill(el, true);
      }
    }}>
    
    </textarea>
  )
}

Why CSS Resize Polyfill is the best