vue-scrollbar

The Simplest Scroll Area Component with custom scrollbar for Vue JS
12,064 114
Install
npm install vue-scrollbar
Latest Version:1.0.4
Vue:1
License:MIT
Last Updated:Sep 29, 2016
Links: GitHub  ·  npm
Maintainer: bosnaufal

Vue Scrollbar

The Simplest Scroll Area Component with custom scrollbar for Vue Js. All animation, Height and Width are pure CSS, So it's TOTALLY CUSTOMIZABLE and RESPONSIVE! YEAH!.

DEMO

Install

You can import vue-scrollbar.vue to your vue component file like this and process it with your preprocessor.;

You can install it via NPM

npm install vue-scrollbar

Usage


<template>
  <vue-scrollbar classes="my-scrollbar" v-bind:speed=100 >
    <div class="should-have-a-children scroll-me">
      <p>And Now</p>
      <p>You Can Put</p>
      <p>A Long Content Here</p>
    </div>
  </vue-scrollbar>
</template>

<script>

  import vueScrollbar from 'vue-scrollbar';

  export default {
    components: { vueScrollbar }
  };

</script>

Props

clasess (String)

Just the ordinary class name for styling the wrapper. It's TOTALLY CUSTOMIZABLE!

/*The Wrapper*/
.my-scrollbar{
  width: 35%;
  min-width: 300px;
  max-height: 450px;
}

/*The Content*/
.scroll-me{
  min-width: 750px;
}
speed (Number)

The wheel step in pixel. The default is 53 pixel per wheel.

Thank You for Making this useful~

Let's talk about some projects with me

Just Contact Me At:

License

MIT Copyright (c) 2016 - forever Naufal Rabbani

Related Packages

vue2-perfect-scrollbar

Vue.js wrapper for perfect scrollbar

932,516 274
vuebar

Vue directive for custom scrollbar that uses native scroll behavior. Lightweight...

279,585 634
@lionad/use-scrollbar-nuxt

Nuxt module for @lionad/use-scrollbar: auto-imports composables and injects scro...

470 14
@imengyu/vue-scroll-rect

A scroll rect component for Vue3

310,220 8

Version History

Version Released Vue License
1.0.4 ^1.0.21 MIT
1.0.3 ^1.0.21 MIT
1.0.2 ^1.0.21 MIT
1.0.1 ^1.0.21 MIT
1.0.0 ^1.0.21 MIT