{"id":16347733,"url":"https://github.com/privatenumber/vue-split-view","last_synced_at":"2025-07-24T11:38:17.571Z","repository":{"id":55450020,"uuid":"153131239","full_name":"privatenumber/vue-split-view","owner":"privatenumber","description":"Create a resizable split-view to partition the UI","archived":false,"fork":false,"pushed_at":"2020-12-30T04:05:33.000Z","size":540,"stargazers_count":21,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-03-17T19:01:40.502Z","etag":null,"topics":["component","partition","resizable","split","ui","view","vue"],"latest_commit_sha":null,"homepage":"","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/privatenumber.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-10-15T14:47:56.000Z","updated_at":"2024-11-27T21:24:46.000Z","dependencies_parsed_at":"2022-08-15T00:31:05.008Z","dependency_job_id":null,"html_url":"https://github.com/privatenumber/vue-split-view","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privatenumber%2Fvue-split-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privatenumber%2Fvue-split-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privatenumber%2Fvue-split-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privatenumber%2Fvue-split-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/privatenumber","download_url":"https://codeload.github.com/privatenumber/vue-split-view/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244717081,"owners_count":20498279,"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":["component","partition","resizable","split","ui","view","vue"],"created_at":"2024-10-11T00:45:27.517Z","updated_at":"2025-03-21T00:30:22.567Z","avatar_url":"https://github.com/privatenumber.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SplitView [![Latest version](https://badgen.net/npm/v/vue-split-view)](https://npm.im/vue-split-view) [![Monthly downloads](https://badgen.net/npm/dm/vue-split-view)](https://npm.im/vue-split-view) [![Install size](https://packagephobia.now.sh/badge?p=vue-split-view)](https://packagephobia.now.sh/result?p=vue-split-view) [![Bundle size](https://badgen.net/bundlephobia/minzip/vue-split-view)](https://bundlephobia.com/result?p=vue-split-view)\n\nCreate a resizable split-view to partition the UI.\n\n👉 [CodePen Demo](https://codepen.io/privatenumber/pen/xxEYxgB)\n\n## 🚀 Install\n```sh\nnpm i vue-split-view\n```\n\n## 🚦 Quick Setup\n\n### Bundler\n\n#### Vue.js 3\n```js\nimport VueSplitView from 'vue-split-view'\n```\n\n#### Vue.js 2\n```js\nimport VueSplitView from 'vue-split-view/dist/vue2'\n```\n\n### Browser\n- Load the CSS stylesheet: `vue-split-view/dist/style.css`\n\n#### ESM\n```js\nimport VueSplitView from 'vue-split-view/dist/vue3.esm.js'\n```\n\n#### UMD\n```\nvue-split-view/dist/vue3.umd.js\n```\n\n## 👨🏻‍🏫 Examples\n\n### Horizontal split\n```html\n\u003csplit-view\u003e\n\t\u003ctemplate #A\u003e\n\t\tSlot A\n\t\u003c/template\u003e\n\n\t\u003ctemplate #B\u003e\n\t\tSlot B\n\t\u003c/template\u003e\n\u003c/split-view\u003e\n```\n\n### Vertical split\n```html\n\u003csplit-view direction=\"vertical\"\u003e\n\t\u003ctemplate #A\u003e\n\t\tSlot A\n\t\u003c/template\u003e\n\n\t\u003ctemplate #B\u003e\n\t\tSlot B\n\t\u003c/template\u003e\n\u003c/split-view\u003e\n```\n\n### Minimum width / height\n```html\n\u003csplit-view\n\tdirection=\"horizontal\"\n\ta-init=\"100px\"\n\ta-min=\"50px\"\n\ta-max=\"200px\"\n\u003e\n\t\u003ctemplate #A\u003e\n\t\tSlot A\n\t\u003c/template\u003e\n\n\t\u003ctemplate #B\u003e\n\t\tSlot B\n\t\u003c/template\u003e\n\u003c/split-view\u003e\n```\n\n### Nesting split-views\n```html\n\u003csplit-view direction=\"horizontal\"\u003e\n\t\u003ctemplate #A\u003e\n\t\tSlot A\n\t\u003c/template\u003e\n\n\t\u003ctemplate #B\u003e\n\t\t\u003csplit-view direction=\"vertical\"\u003e\n\t\t\t\u003ctemplate #A\u003e\n\t\t\t\tSlot BA\n\t\t\t\u003c/template\u003e\n\n\t\t\t\u003ctemplate #B\u003e\n\t\t\t\tSlot BB\n\t\t\t\u003c/template\u003e\n\t\t\u003c/split-view\u003e\n\t\u003c/template\u003e\n\u003c/split-view\u003e\n```\n\n## 🎛 API\n\n\n### Props\n\n#### direction\n\nType: `String`\n\nDefault: `horizontal`\n\nThe direction the split-view should be partitioned in. Possible values are: `horizontal`, `vertical`.\n\n#### a-init\n\nType: `String`\n\nDefault: `none`\n\nThe initial width/height of the first partition. The second partition fills the remaining width/height. Numeric values translate to pixels, string values are directly used for the `width`/`height` CSS property.\n\n#### a-min\nType: `String`\n\nDefault: `none`\n\nThe minimum width/height of the first partition. This influences the second partition's maximum width/height. The value is directly used for the `min-width`/`min-height` CSS property.\n\n#### a-max\nType: `String`\n\nDefault: `none`\n\nThe maxium width/height of the first partition. This influences the second partition's minimum width/height. The value is directly used for the `max-width`/`max-height` CSS property.\n\n### Slots\n\n#### A\nContent of the first partition.\n\n#### B\nContent of the second partition.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprivatenumber%2Fvue-split-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprivatenumber%2Fvue-split-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprivatenumber%2Fvue-split-view/lists"}