Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
scroll-up-react
Advanced tools
Readme
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 4 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.