Skip to content

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

License

Notifications You must be signed in to change notification settings

salisdemos/css-resize-polyfill

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • JavaScript 86.9%
  • HTML 13.1%