{"id":22486449,"url":"https://github.com/yansern/vue-multipane","last_synced_at":"2025-05-16T04:05:45.060Z","repository":{"id":44908109,"uuid":"105147460","full_name":"yansern/vue-multipane","owner":"yansern","description":"Resizable split panes for Vue.js.","archived":false,"fork":false,"pushed_at":"2023-01-02T14:16:56.000Z","size":556,"stargazers_count":600,"open_issues_count":34,"forks_count":127,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-05-11T21:44:08.489Z","etag":null,"topics":["flexbox","resize","splitpane","ui-components","vue","vue-component"],"latest_commit_sha":null,"homepage":"https://yansern.github.io/vue-multipane/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yansern.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":"2017-09-28T12:49:29.000Z","updated_at":"2025-03-15T13:24:50.000Z","dependencies_parsed_at":"2023-02-01T03:00:31.822Z","dependency_job_id":null,"html_url":"https://github.com/yansern/vue-multipane","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yansern%2Fvue-multipane","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yansern%2Fvue-multipane/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yansern%2Fvue-multipane/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yansern%2Fvue-multipane/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yansern","download_url":"https://codeload.github.com/yansern/vue-multipane/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254464895,"owners_count":22075570,"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":["flexbox","resize","splitpane","ui-components","vue","vue-component"],"created_at":"2024-12-06T17:14:37.034Z","updated_at":"2025-05-16T04:05:40.049Z","avatar_url":"https://github.com/yansern.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# vue-multipane ![npm tag](https://img.shields.io/npm/v/vue-multipane.svg)\n\u003e Resizable split panes for [Vue.js](http://vuejs.org).\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/yansern/vue-multipane/master/demo/preview.gif\" /\u003e\n  \u003cbr/\u003e\n  \u003cb\u003eCheck out the \u003ca href=\"https://yansern.github.io/vue-multipane/demo/index.html\" target=\"_blank\"\u003elive demo\u003c/a\u003e.\u003c/b\u003e\n\u003c/p\u003e\n\n## Features\n\n* Uses CSS3 Flexbox.\n* Supports vertical \u0026 horizontal layouts.\n* Supports fixed and fluid panes.\n* Configure everything using CSS!\n\n## Installation\n```bash\n$ npm install vue-multipane\n```\n\n## Using vue-multipane\n\nFirst, import `vue-multipane` into your Vue component.\n```js\nimport { Multipane, MultipaneResizer } from 'vue-multipane';\n\nexport default {\n  // ...\n  components: {\n    MultiPane,\n    MultiPaneResizer\n  }\n}\n```\n\nThen, construct your split pane layout using multipane component.\n```html\n\u003cmultipane\u003e\n  \u003cdiv\u003ePane 1\u003c/div\u003e\n  \u003cmultipane-resizer\u003e\u003c/multipane-resizer\u003e\n  \u003cdiv\u003ePane 2\u003c/div\u003e\n  \u003cmultipane-resizer\u003e\u003c/multipane-resizer\u003e\n  \u003cdiv\u003ePane 3\u003c/div\u003e\n\u003c/multipane\u003e\n```\n\n## Customizing pane layout\nYou can customize pane layouts using CSS.\n\n* Create vertical/horizontal layouts using `layout=\"vertical|horizontal\"` attribute.\n* Set initial pane size using `width|height` CSS property.\n* Set pane size constraints using `min-width|min-height|max-width|max-height` CSS property.\n* Create fixed/fluid combination panes by using `px|%` units.\n* Use `flex-grow: 1` for that one pane that should take all remaining space available on the multipane container.\n\nThis example below shows a combination of different styling properties you can apply to make the panes render the way you want it to:\n```html\n\u003cmultipane class=\"foo\" layout=\"vertical\"\u003e\n  \u003cdiv :style=\"{ width: '100px', maxWidth: '200px' }\"\u003ePane 1\u003c/div\u003e\n  \u003cmultipane-resizer\u003e\u003c/multipane-resizer\u003e\n  \u003cdiv :style=\"{ width: '25%', maxWidth: '50%' }\"\u003ePane 2\u003c/div\u003e\n  \u003cmultipane-resizer\u003e\u003c/multipane-resizer\u003e\n  \u003cdiv :style=\"{ flexGrow: 1 }\"\u003ePane 3\u003c/div\u003e\n\u003c/multipane\u003e\n\n```\n\n## Customizing resize handle\nBy default, vue-multipane creates an invisible 10px resize handle that sits in between 2 panes. You can customize the appearance of the resize handle to fit your needs.\n\nThis example below creates a 15px blue resize handle:\n\n```css\n.multipane.foo.layout-v .multipane-resizer {\n  margin: 0; left: 0; /* reset default styling */\n  width: 15px;\n  background: blue;\n}\n\n.multipane.foo.layout-h .multipane-resizer {\n  margin: 0; top: 0; /* reset default styling */\n  height: 15px;\n  background: blue;\n}\n\n```\n\n#### Optional resize handle\nYou can also add resize handle only specific panes by just adding `\u003cmultipane-resizer\u003e` next it.\n\n```html\n\u003cmultipane\u003e\n  \u003cdiv\u003ePane 1\u003c/div\u003e \u003c!-- No resizing on Pane 1. --\u003e\n  \u003cdiv\u003ePane 2\u003c/div\u003e \u003c!-- Resizing is possible on Pane 2. --\u003e\n  \u003cmultipane-resizer\u003e\u003c/multipane-resizer\u003e\n  \u003cdiv\u003ePane 3\u003c/div\u003e\n\u003c/multipane\u003e\n```\n\n## Options\n\n** Multipane **\n\n|    Property    |    Description   |   Type     |  Default     |\n| -------------- | ---------------- | :--------: | :----------: |\n| layout         | Determine layout of panes. | String [vertical, horizontal] |vertical |\n\n## Events\n\n** Multipane **\n\n|    Event           |    Description   |   Returns  |\n| ------------------ | ---------------- | :--------: |\n| paneresizestart    | When user clicks on the resize handle to start resizing a pane. | pane, container, size |\n| paneresize         | When user is resizing a pane. | pane, container, size |\n| paneresizestop     | When user release the resize handle to stop resizing a pane. | pane, container, size |\n\n## License\n**[vue-multipane](https://github.com/yansern/vue-multipane)** by [Yan Sern](https://twitter.com/yansernio) licensed under [MIT](LICENSE).\n\n\u003e PS: I would love to know if you're using vue-multipane. Tweet to me at [@yansernio](https://twitter.com/yansernio).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyansern%2Fvue-multipane","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyansern%2Fvue-multipane","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyansern%2Fvue-multipane/lists"}