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

@yiyb0603/react-scroll-progress-line

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yiyb0603/react-scroll-progress-line

🎁 This package is a bar with the ability to show at the top how far down the current scroll point is

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@yiyb0603/react-scroll-progress-line

🎁 This package is a bar with the ability to show at the top how far down the current scroll point is.

Install

npm install --save @yiyb0603/react-scroll-progress-line

or

yarn add @yiyb0603/react-scroll-progress-line

Props

NameDescriptionTypeRequiredDefault
backgroundColorColor indicating where the current scroll has not reachedstringO""
progressColorA color indicating where the current scroll has reachedstringO""
heightProgressLine's heightstring | numberX5px
customStyleSet other custom styles CSSPropertiesX{}
disableClickWhether to use the click-to-go event or not.booleanXfalse
clickCallbackFunction to run after click moveFunctionX() => {}

Usage

import React from 'react'

import ScrollProgressLine from '@yiyb0603/react-scroll-progress-line'

const App = (): JSX.Element => {
  return (
    <ScrollProgressLine
      backgroundColor='gray'
      progressColor='blue'
      height='8px'
    />
  )
}

export default App

Execution

Untitled_ Jul 19, 2021 1_46 PM

License

MIT © yiyb0603

Keywords

FAQs

Package last updated on 19 Jul 2021

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