
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
scroll-up-react
Advanced tools
To install scroll-up-react
# with npm:
npm install scroll-up-react --save
# with yarn:
yarn add scroll-up-react
# with pnpm:
pnpm add scroll-up-react
# with bun:
bun add scroll-up-react
scroll-up-react
exports <Progress>
component. When you use the <Progress>
component, it will add a progress bar on the top of the page. You can customize the progress bar by passing props like color1
color2
and size
.
Inside your App.tsx/jsx
file, import the Progress
component and use it.
import React from "react";
import { Progress } from "scroll-up-react";
function App() {
return (
<>
<Progress color1="#3c3c3c" color2="#28935c" size="10px" />
<div style={{ height: "100vh" }}></div>
<div style={{ height: "100vh" }}></div>
<div style={{ height: "100vh" }}></div>
<div style={{ height: "100vh" }}></div>
</>
);
}
export default App;
You can use the default progress bar without any customization.
import React from "react";
import { Progress } from "scroll-up-react";
function App() {
return (
<>
<Progress />
</>
);
}
export default App;
Here is the full API for the <Progress>
component, these properties can be set on an instance of Progress:
Parameter | Type | Required | Default | Description | Constraints |
---|---|---|---|---|---|
color1 | string | No | #3c3c3c | First color for the gradient | It must be a valid hexcode |
color2 | string | No | #28935c | Second color for the gradient | It must be a valid hexcode |
size | string | No | 8px | Size of the page scrollbar | It must be a valid CSS height property |
To contribute to the scroll-up-react
npm package, you can follow these steps:
src/components/Progress.tsx
.FAQs
A simple page progress bar for your project
The npm package scroll-up-react receives a total of 1 weekly downloads. As such, scroll-up-react popularity was classified as not popular.
We found that scroll-up-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.