
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
@scrollmeter/react
Advanced tools
React hooks and components for Scrollmeter - A lightweight JavaScript library that visually displays scroll progress on web pages
React hook for Scrollmeter, a lightweight library that visually displays the scroll progress of web pages.
npm install @scrollmeter/react
or
yarn add @scrollmeter/react
Use the useScrollmeter hook by providing the target container ID where you want to display scroll progress.
import { useScrollmeter } from '@scrollmeter/react'
import '@scrollmeter/core/dist/index.css'
function App() {
const { targetRef } =
useScrollmeter <
HTMLDivElement >
{
useTimeline: true,
useTooltip: true,
usePreview: true,
}
return <div ref={targetRef}>{/* Your content here */}</div>
}
import { useScrollmeter, UseScrollmeterOptions } from '@scrollmeter/react'
import '@scrollmeter/core/dist/index.css'
function App() {
const [scrollOptions, setScrollOptions] =
useState <
UseScrollmeterOptions >
{
useTimeline: true,
useTooltip: true,
usePreview: true,
barOptions: {
color: 'rgba(74, 144, 226, 0.9)',
height: 10,
background: 'rgba(0, 0, 0, 0)',
},
timelineOptions: {
color: '#838383',
width: 4,
},
tooltipOptions: {
background: '#333',
fontColor: 'white',
fontSize: 12,
paddingInline: 8,
paddingBlock: 6,
width: 150,
},
}
const { targetRef } = useScrollmeter < HTMLDivElement > scrollOptions
return <div ref={targetRef}>{/* Your content here */}</div>
}
| Property | Type | Description | Default |
|---|---|---|---|
| color | string | Progress bar color | rgba(74, 144, 226, 0.9) |
| height | number | Progress bar height | 10 |
| background | string | Progress bar background | rgba(0, 0, 0, 0) |
| Property | Type | Description | Default |
|---|---|---|---|
| color | string | Timeline color | #838383 |
| width | number | Timeline width | 4 |
| Property | Type | Description | Default |
|---|---|---|---|
| background | string | Tooltip background | #333 |
| fontColor | string | Tooltip text color | white |
| fontSize | number | Tooltip font size | 12 |
| paddingInline | number | Tooltip inline padding | 8 |
| paddingBlock | number | Tooltip block padding | 6 |
| width | number | Tooltip width | 150 |
MIT License
Copyright (c) 2024 suhyeon-jeon
FAQs
React hooks and components for Scrollmeter - A lightweight JavaScript library that visually displays scroll progress on web pages
The npm package @scrollmeter/react receives a total of 1 weekly downloads. As such, @scrollmeter/react popularity was classified as not popular.
We found that @scrollmeter/react 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
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.