vue3-split
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Vue3 Split

Vue3 Split is Vue JS wrapper for Split.js

Software License npm bundle size

Installation

npm i vue3-split
yarn add vue3-split
pnpm i vue3-split

Demo & Documentation

https://z0mb1.github.io/vue3-split/

Simple usage

<script setup lang="ts">
import { SplitWrapper, SplitItem } from 'vue-split'

</script>

<template>
  <SplitWrapper class="vue-split horizontal">
    <SplitItem class="vue-split-item">
      <div class="vue-split-content">
        ...
      </div>
    </SplitItem>
    <SplitItem class="vue-split-item">
      <div class="vue-split-content">
        ...
      </div>
    </SplitItem>
  </SplitWrapper>
</template>
.vue-split {
  height: 100%;
}

.vue-split.horizontal {
  display: flex;
  flex-direction: row;
}

.vue-split.horizontal .vue-split-content {
  height: 100%;
}

.vue-split-item {
  height: 100%;
  overflow: hidden;
}

.vue-split-content {
  height: 100%;
}

.gutter {
  background-color: #eee;
  background-repeat: no-repeat;
  background-position: 50%;
}

.gutter.gutter-horizontal {
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==');
  cursor: col-resize;
}

.gutter.gutter-vertical {
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFAQMAAABo7865AAAABlBMVEVHcEzMzMzyAv2sAAAAAXRSTlMAQObYZgAAABBJREFUeF5jOAMEEAIEEFwAn3kMwcB6I2AAAAAASUVORK5CYII=');
  cursor: row-resize;
}

Package Sidebar

Install

npm i vue3-split

Weekly Downloads

13

Version

0.0.3

License

MIT

Unpacked Size

26.4 kB

Total Files

9

Last publish

Collaborators

  • z0mb1