NumberFlow for React is a React component designed to animate numerical values within web applications. It addresses the need for visually engaging number transitions, automatically animating changes when the value prop is updated. The component is dependency-free and emphasizes accessibility and customization, allowing developers to tailor the animation experience to their application's requirements.
A range of features are available to control the appearance and behavior of animated numbers. NumberFormatOptions, enabling customization of number formats and locales. Developers can add custom prefixes or suffixes to numbers, such as currency symbols or units. Animation timings are adjustable through three props—transformTiming, spinTiming, and opacityTiming—each accepting an EffectTiming object to fine-tune durations and easing. The trend prop allows control over the direction of digit animations, while the isolate prop can isolate transitions from other layout changes. Animations can be toggled on or off with the animated prop, and the digits prop provides configuration for individual digit behavior, useful for time-based displays. The respectMotionPreference prop ensures compatibility with user motion preferences, and a plugin system is available, with a continuous plugin that enables transitions through intermediate values.
NumberFlow for React is intended for developers building React applications who want to enhance their user interfaces with animated numeric displays. The component can be imported from '@number-flow/react' and used declaratively within React code.
NumberFlow for React is a Frameworks & SDKs product. It focuses on adding animated, accessible number displays to React web applications without extra dependencies. It is built as an open-source project for react developers. NumberFlow for React is open source under the MIT license. The product ships for the web.
It is developed by Maxwell Barvian, and the product first shipped in 2024. Development happens publicly on GitHub with 7.4k stars and 23 commits in the last 90 days. Key capabilities include animated numbers, react integration, and customizable formatting.
Latest indexed changes and source events
Other apps tracked under the same category.