🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

v3-scroll

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

v3-scroll

Component scroll created with Vue 3

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

v3-scroll

v3-scroll is a customizable scroll component created with Vue 3.

  • Install
  • Add Plugin
  • Usage
  • Anatomy Scrollbar
  • Available Props
  • Example passing Props
  • Browser Compatibility

Install

$ npm install v3-scroll

Add Plugin

To use the scroll component you shoud import V3Scroll from "v3-scroll" and import v3-scroll/dist/library.mjs.css and use on your App component just like this:

import { createApp } from "vue";
import App from "./App.vue";
import V3Scroll from "v3-scroll";
import "v3-scroll/dist/library.mjs.css";

createApp(App)
  .use(V3Scroll)
  .mount("#app");

Usage

<template>
  <div>
    <V3Scroll />
  </div>
</template>

<script>
    export default {
        name: "App"
    }
</script>

Anatomy Scrollbar

alt text

We can change the size of 1, and the color of 3 and 4. (next updates soon!)

Available Props

PropTypeDefaultDescription
scrollbarWidthString8pxDefines the scrollbar width. The value is expressed in pixels e.g 10px
trackColorString#f1f1f1Defines the track color. The value is expressed in hex or a color name e.g #f2f2f2 or blue
thumbColorString#666Defines the thumb color. The value is expressed in hex or a color name.
thumbHoverColorString#999Defines the thumb hover color. The value is expressed in hex or a color name

Example passing Props

<template>
  <div>
    <V3Scroll scrollbarWidth="12px" thumbColor="blue" />
  </div>
</template>

Browser Compatibility

alt text

Keywords

vue

FAQs

Package last updated on 06 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts