@rmp135/vue-splitter
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

vue-splitter

For splitting a Vue in two!

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>
  <div slot="left-pane">
    <div>Some left content here.</div>
  </div>
  <div slot="right-pane">
    <div>Some right content here.</div>
  </div>
</vue-splitter>

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

See the Documentation for more props, events and styling.

Readme

Keywords

none

Package Sidebar

Install

npm i @rmp135/vue-splitter

Weekly Downloads

194

Version

2.0.2

License

MIT

Unpacked Size

7.4 kB

Total Files

5

Last publish

Collaborators

  • rmp135