{"id":13823039,"url":"https://github.com/nikitasnv/vue-resizable","last_synced_at":"2025-05-16T17:33:01.506Z","repository":{"id":39352278,"uuid":"157185160","full_name":"nikitasnv/vue-resizable","owner":"nikitasnv","description":"VueResizable component","archived":false,"fork":false,"pushed_at":"2022-07-06T19:40:41.000Z","size":826,"stargazers_count":228,"open_issues_count":17,"forks_count":46,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-17T22:48:39.784Z","etag":null,"topics":["drag","draggable","resizable","resize","ui","vue","vue-component"],"latest_commit_sha":null,"homepage":"https://nikitasnv.github.io/vue-resizable/","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nikitasnv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-12T09:05:49.000Z","updated_at":"2025-03-27T08:59:34.000Z","dependencies_parsed_at":"2022-07-11T21:49:01.376Z","dependency_job_id":null,"html_url":"https://github.com/nikitasnv/vue-resizable","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikitasnv%2Fvue-resizable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikitasnv%2Fvue-resizable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikitasnv%2Fvue-resizable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikitasnv%2Fvue-resizable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikitasnv","download_url":"https://codeload.github.com/nikitasnv/vue-resizable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254576788,"owners_count":22094455,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drag","draggable","resizable","resize","ui","vue","vue-component"],"created_at":"2024-08-04T08:02:31.190Z","updated_at":"2025-05-16T17:33:00.757Z","avatar_url":"https://github.com/nikitasnv.png","language":"Vue","funding_links":[],"categories":["Vue"],"sub_categories":[],"readme":"# VueResizable\n\n[![Latest Version on NPM](https://img.shields.io/npm/v/vue-resizable.svg?style=flat-square)](https://npmjs.com/package/vue-resizable)\n[![npm](https://img.shields.io/npm/dt/vue-resizable.svg?style=flat-square)](https://www.npmjs.com/package/vue-resizable)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n\n![](./docs/logo.gif) \n\n\u003e Vue component that allows you to resize and drag elements\n\n### Demo\n\n\u003ca href=\"https://nikitasnv.github.io/vue-resizable/\" target=\"_blank\"\u003eDemo page\u003c/a\u003e\\\n\u003ca href=\"https://codesandbox.io/s/13qp7xk787\" target=\"_blank\"\u003eCodeSandbox\u003c/a\u003e\\\n\u003ca href=\"https://codepen.io/nikitasnv/pen/YzPXKNw\" target=\"_blank\"\u003eMaterial window\u003c/a\u003e\n\n## Installation\n\n```sh\nnpm install vue-resizable --save\n```\n\n## Basic usage\n\n```vue\n\u003ctemplate\u003e\n    \u003cvue-resizable\u003e\n        \u003cdiv class=\"resizable-content\"\u003e\u003c/div\u003e\n    \u003c/vue-resizable\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport VueResizable from 'vue-resizable'\n\nexport default {\n    name: \"YourApp\",\n    components: {VueResizable}\n}\n\u003c/script\u003e\n\n\u003cstyle scoped\u003e\n    .resizable-content {\n        height: 100%;\n        width: 100%;\n        background-color: aqua;\n    }\n\u003c/style\u003e\n```\n\n## Properties\n\n\n| Property            |  Data attribute    | Type    | Default | Description                                                                                                                                                                                                                                                                           |\n|:--------------------|------|:--------|:--------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| width               |   w   | [Number, String] | undefined   | Width in pixel or 'auto'           \n| minWidth            |   minW   | Number  | 0    |  Minimum width     \n| maxWidth            |   maxW    | Number | undefined   | Maximum width\n| height               |  h   | [Number, String]  | undefined    | Height in pixel, or 'auto'                                                                                                                                                                                                                    |\n| minHeight        | minH | Number  | 0       | Minimum height                                                                                                                                                                                                                |\n| maxHeight    | maxH | Number  | undefined       | Maximum height                                                                                                                                                                                                                              |\n| left          |   l    | [Number, String] | 0    | Offset left from parent                                                                                                                                                                                                                                                     |\n| top       | t | [Number, String] | 0   | Offset top from parent          \n| active     |    | Array | ['r', 'rb', 'b', 'lb', 'l', 'lt', 't', 'rt']   | Active handlers for resize    \n| fitParent    |     | Boolean | false  | Respect parent's size on resizing\n| dragSelector | dragElements  |  String | undefined | Drag selector\n| maximize | | Boolean | false| Maximize element to parent size\n| disableAttributes | calcMap | Array | [] | Disable changes to attributes, Available values: ['l', 't', 'w', 'h']\n\n## Events\n\n| Name            |  Payload   |  Description                                                                                                                                                                                                                                                                           |\n|:--------------------|-------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| mount               |   [eventName,left,top,width,height]      | Called after the component is mounted \n| destroy               |   [eventName,left,top,width,height]      | Called before the component is destroyed \n| resize:start               |   [eventName,left,top,width,height]      | Called after clicking on one of the active handlers \n| resize:move               |   [eventName,left,top,width,height]      | Called when a handler is being dragged\n| resize:end               |   [eventName,left,top,width,height]      | Called when the mouse button was released after resize\n| drag:start | [eventName,left,top,width,height] | Called after clicking on one of the drag elements\n| drag:move |  [eventName,left,top,width,height] | Called when a drag element is being dragged\n| drag:end | [eventName,left,top,width,height] | Called when the mouse button was released after drag\n| maximize | [eventName,left,top,width,height, state] | Called when \"maximize\" state changed\n\n## Development\n\n\n\nTo begin development, run:\n\n``` bash\nnpm install \nnpm run dev\n```\nIt starts [webpack-dev-server](https://github.com/webpack/webpack-dev-server) on `localhost:8080` with [Demo](./docs) page.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.\n\n\n     \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikitasnv%2Fvue-resizable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikitasnv%2Fvue-resizable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikitasnv%2Fvue-resizable/lists"}