@mr-scroll/vue
v1.2.0
Published
The best custom scroll for the web. This is the vue wrapper.
Downloads
2
Maintainers
Readme
@mr-scroll/vue
The best custom scroll for the web.
This is the vue wrapper. Check here (root of this repo) for an overview on mr-scroll.
Install
npm i @mr-scroll/core @mr-scroll/vue
Note: If you're using css-theming, check the css-theming support package.
Usage
Register as a global component:
import { createApp } from 'vue';
import Scroll from '@mr-scroll/vue';
const app = createApp(..options);
app.use(Scroll);
Register as a local component:
import Scroll from '@mr-scroll/vue';
export default {
name: 'MyComponent',
components: {
'mr-scroll': Scroll,
},
};
Import the global CSS styles (for example in your App.vue):
<style src='@mr-scroll/core/dist/styles.css'></style>
Use mr-scroll
component:
<mr-scroll>
Content
</mr-scroll>
For more general usage info check the README in the root of this repo.