Skip to content

Repository files navigation

Vuescroll

VersionBuild StatusCoverageLicenseDownloadprettier

Demo

Introduction

Vuescroll is a scrollbar plugin based on Vue.js 2.X, it is very easy to use, no complex options and each option has its default value(It means you don't even have to write any configuration). Just wrap the content by <vue-scroll> and a custom scrollbar will show. It supports:

  • Customizable scrollbar
  • Pull-to-refresh, push-to-load
  • Carousel

Compatibility

vue versionvuescroll version
2.x<=4.X
3.x>=5.0.0

Demo

  • You can find demo under examples folder of repo.
  • You can see the full features of vuescroll at Live Demo section of the website.

Install

npm i vuescroll -S
# OR
yarn add vuescroll

Usage

Import and registry

For vue2.x

importvuescrollfrom'vuescroll';importVuefrom'vue';Vue.use(vuescroll,{ops: {// The global config},name: 'myScroll'// customize component name, default -> vueScroll});// ORVue.component('vue-scroll',vuescroll);

For vue3.x

import{createApp}from'vue';importvuescrollfrom'vuescroll';constapp=createApp(App);// You can set global config here.app.use(vuescroll,{ops: {// The global config},name: 'myScroll'// customize component name, default -> vueScroll});

Wrap the content by vue-scroll

<divclass="container"><vue-scroll><divclass="content"></div></vue-scroll></div>

Documentation

For detailed docs, please see Guide section on the website.

Communication

  • Wechat

Demo

  • Twitter

@wangyi70991

License

MIT By Yves Wang(Wangyi Yi)

About

A customizable scrollbar plugin based on vue.js for PC , mobile phone, touch screen, laptop.

Topics

Resources

Code of conduct

Contributing

Stars

1.3k stars

Watchers

15 watching

Forks

Releases

Packages

Used by

Contributors

Languages