react-hook-resizable-element
TypeScript icon, indicating that this package has built-in type declarations

0.3.4 • Public • Published

react-hook-resizable-element

A React useEffect hook to allow resizing of elements based of some dependency.

Works with any HTMLElement that has the following attributes:

  • ele.scrollHeight (read)
  • ele.style.height (read/write)

I wrote it specifically for teaxtarea, and checked it on textarea and p elements.

Links

github

npm

Credits

template for typescript NPM

article in medium by Owen Herterich

Package Sidebar

Install

npm i react-hook-resizable-element

Weekly Downloads

2

Version

0.3.4

License

MIT

Unpacked Size

15.4 kB

Total Files

11

Last publish

Collaborators

  • andrew.oxenburgh