carlos22 / vue-splitter

Split a Vue in two!

Home Page:https://rmp135.github.io/vue-splitter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vue-splitter

For splitting a Vue in two!

npm (scoped) Run Tests

Demo

Compatible with Vue 3 only.

Installing

Install from npm.

npm i @rmp135/vue-splitter

Import the component. The styling is included.

import VueSplitter from '@rmp135/vue-splitter'

Use it in the HTML template, populating the left-pane and right-pane slots.

<vue-splitter>
  <template #left-pane>
    <div>Some left content here.</div>
  </template>
  <template #right-pane>
    <div>Some right content here.</div>
  </template>
</vue-splitter>

Bind to the percent prop for two-way binding on the splitter position.

See the Documentation for more props, events and styling.

About

Split a Vue in two!

https://rmp135.github.io/vue-splitter/


Languages

Language:Vue 68.0%Language:TypeScript 32.0%