
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@react-md/progress
Advanced tools
Create accessible horizontal or vertical progress bars or circular progress indicators that can either be deterministic or indeterministic.
$ npm install --save @react-md/progress
It is also recommended to install the following packages for updating the progress theme or transitions:
$ npm install --save @react-md/theme \
@react-md/transition \
@react-md/utils
You should check out the full documentation for live examples and more customization information, but an example usage is shown below.
The majority of the time you'll be using the progress components to track some
long running task or initial page loading. For accessibility, you'll need to add
an id
to the progress component as well as updating the main loading area to
have aria-buys="true"
and aria-describedby="PROGRESS_ID"
:
import React from "react";
import { render } from "react-dom";
import { CircularProgress, LinearProgress } from "@react-md/progress";
import { useToggle } from "@react-md/utils";
const App = () => {
const [loadingCircle, , stopLoadingCircle] = useToggle(true);
const [loadingLinear, , stopLoadingLinear] = useToggle(true);
useEffect(() => {
let circleTimeout = window.setTimeout(() => {
stopLoadingCircle();
circleTimeout = undefined;
}, 5000);
let linearTimeout = window.setTimeout(() => {
stopLoadingLinear();
linearTimeout = undefined;
}, 8000);
return () => {
window.clearTimeout(circleTimeout);
window.clearTimeout(linearTimeout);
};
}, []);
return (
<>
<div
id="circle-content"
aria-busy={loadingCircle || undefined}
aria-describedby={loadingCircle ? "circular-progress" : undefined}
>
{loadingCircle && <CircularProgress id="circular-progress" />}
{!loadingCircle && <Text type="headline-2">Hello from circle div</Text>}
</div>
<div
id="linear-content"
aria-busy={loadingLinear || undefined}
aria-describedby={loadingCircle ? "circular-progress" : undefined}
>
{loadingLinear && <CircularProgress id="linear-progress" />}
{!loadingLinear && <Text type="headline-2">Hello from linear div</Text>}
</div>
</>
);
};
render(<App />, document.getElementById("root"));
2.1.2 (2020-08-01)
useCSSTransition
now
correctly forwards refs
(36f832f)FAQs
Create horizontal, vertical, and circular progress indicators
The npm package @react-md/progress receives a total of 1,136 weekly downloads. As such, @react-md/progress popularity was classified as popular.
We found that @react-md/progress demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.