resizable-element

1.0.6 • Public • Published

resizable-element

You can use this package to make your elements resizable

Install

npm install resizable-element

Example

https://wkv1kf-5173.csb.app/

import createResizableElements from 'resizable-element'

// You can choose different class to make elements resizable
// like "resize-top resize-bottom resize-left resize-right" 
<div class="resize-bottom resize-right"></div>

// Run function createResizableElements when the page is loaded
// Take Vue as an example
mounted() {
  this.$nextTick(() => {
    createResizableElements()
  })
}

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i resizable-element

      Weekly Downloads

      2

      Version

      1.0.6

      License

      ISC

      Unpacked Size

      7.22 kB

      Total Files

      3

      Last publish

      Collaborators

      • beimeng1998