Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sil/scroll-progress

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sil/scroll-progress

You know that bar on top of a screen, or sometimes in the bottom where you see how far you scrolled? So, not the regular scrollbar but just a bar to show the progress.

  • 1.1.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
2
Weekly downloads
 
Created
Source

Scroll Progress

You know that bar on top of a screen, or sometimes in the bottom where you see how far you scrolled? So, not the regular scrollbar but just a bar to show the progress.

That is what this is.

Install

Install the package npm install @sil/scroll-progress

Import the package

import ScrollProgress from '~/@sil/scroll-progress

Define the component:

export default {
	components: {
		ScrollProgress
	}
}

Use the component:

<template>
	<div>
		<scroll-progress></scroll-progress>
	</div>
</template>

Use the component with non-default settings:

<template>
	<div>
		<scroll-progress height="10px" background-color="red" color="white"></scroll-progress>
	</div>
</template>

Props

height

set height to give the element a different height.

default: 3px

backgroundColor

backgroundColor sets the color behind the bar. This is not the color of the progress bar itself but its container.

default: transparent

color

color is the color of the scrollbar.

default: black

FAQs

Package last updated on 08 Jan 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc