
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-multi-segment-progress
Advanced tools
A React progress bar component that supports multiple segments with overlapping effect
A React progress bar component that supports multiple segments with overlapping effect. Perfect for showing multiple progress states in a single bar.
npm install react-multi-segment-progress
import { MultiSegmentProgress } from "react-multi-segment-progress";
const MyComponent = () => {
const segments = [
{ id: "completed", percentage: 30, color: "#52c41a", label: "Completed" },
{
id: "in-progress",
percentage: 20,
color: "#fa8c16",
label: "In Progress",
},
{ id: "pending", percentage: 50, color: "#d9d9d9", label: "Pending" },
];
return (
<MultiSegmentProgress
segments={segments}
height={12}
borderRadius={6}
backgroundColor="#f5f5f5"
showTooltips
/>
);
};
| Prop | Type | Default | Description |
|---|---|---|---|
segments | Segment[] | required | Array of segments to display |
height | number | 12 | Height of the progress bar in pixels |
backgroundColor | string | '#E4E5E6' | Background color of the progress bar |
showTooltips | boolean | true | Whether to show tooltips on hover |
borderRadius | number | 0 | Border radius of the progress bar in pixels |
interface Segment {
id: string; // Unique identifier for the segment
percentage: number; // Percentage of the total width (0-100)
color: string; // Background color of the segment
label?: string; // Optional label for tooltip
}
const segments = [
{ id: "1", percentage: 40, color: "#52c41a", label: "Completed" },
{ id: "2", percentage: 60, color: "#d9d9d9", label: "Remaining" },
];
<MultiSegmentProgress segments={segments} />;
const segments = [
{ id: "1", percentage: 30, color: "#722ed1", label: "Phase 1" },
{ id: "2", percentage: 45, color: "#1890ff", label: "Phase 2" },
{ id: "3", percentage: 25, color: "#13c2c2", label: "Phase 3" },
];
<MultiSegmentProgress
segments={segments}
height={20}
borderRadius={10}
backgroundColor="#f0f0f0"
/>;
MIT © David Arozarena
FAQs
A React progress bar component that supports multiple segments with overlapping effect
We found that react-multi-segment-progress demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.