![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
react-activity-heading
Advanced tools
react-activity-heading
lets you push activity state to a heading area, temporarily replacing the text with a status message.
You also have the ability to update the status message just before it animates out. This is useful for displaying success/error messages.
Under the hood it throttles the rate at which new status props are accepted so that quick changes have a chance to display and the animations always look good.
npm install react-activity-heading --save
This package depends on velocity-react for animation and lodash for some utility functions.
Example usage of <ActivityHeading />
:
<ActivityHeading
title="My Heading"
showActivityStatus={this.state.is_saving}
activityStatus="Saving..."
showCompleteStatus={this.state.save_success}
completeStatus="Saved"
/>
title
strText to display when there is no activity status.
showActivityStatus
boolSet true to animate status text in.
activityStatus
strText that will animate in when showActivityStatus
is set true
showCompleteStatus
boolSet true to update text just before activityStatus
animates out
completeStatus
strText that will replace activityStatus
just before it animates out
refreshRate
numRate (in milliseconds) at which pushed props update state. Default 1000
.
speed
numEnter/leave animation speed (in milliseconds). Default 300
.
height
strSet the height of wrapper. Necessary because of absolute positioned content.
styles
objApply custom styles to wrapper
and heading
. Merged with default styles.
FAQs
Reflect activity state in your headings
The npm package react-activity-heading receives a total of 1 weekly downloads. As such, react-activity-heading popularity was classified as not popular.
We found that react-activity-heading 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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.