New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-nudge-ui

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-nudge-ui

A lightweight React component to subtly draw attention to UI elements with animated rings and customizable tooltips — perfect for onboarding hints, feature highlights, or gentle nudges in your app.

latest
npmnpm
Version
0.2.0
Version published
Weekly downloads
20
Maintainers
1
Weekly downloads
 
Created
Source

react-nudge

A lightweight React component to subtly draw attention to UI elements with animated rings and customizable tooltips — perfect for onboarding hints, feature highlights, or gentle nudges in your app.

Features

  • Animated pulse ring around any React element
  • Customizable ring color, size, and border radius
  • Tooltip with flexible positioning (top or bottom)
  • Smooth floating animation for tooltips (optional)
  • Customizable tooltip styles: background, text color, font size, padding, and more
  • Control tooltip visibility duration
  • Easy to integrate and style

Installation

npm install react-nudge-ui

or with yarn:

yarn add react-nudge-ui

Usage

import React from "react";
import { Nudge } from "react-nudge-ui";

function App() {
return (

Nudge Button
); }

export default App;

Props

Props

PropTypeDefaultDescription
childrenReact.ReactNodeThe wrapped React element to highlight
hintstringTooltip message to display
durationnumber5000Time in milliseconds the nudge is visible
ringColorstring#007bffColor of the animated ring
ringSizenumber8Thickness (in px) of the ring
ringBorderRadiusstringBorder radius of the ring (e.g., 12px, 50%)
tooltipBgColorstring#333Background color of the tooltip
tooltipTextColorstring#fffText color of the tooltip
tooltipFontSizestring14pxFont size of the tooltip text
tooltipPaddingstring6px 12pxPadding inside the tooltip
tooltipPosition"top" | "bottom""top"Position of the tooltip relative to the element
tooltipFloatingbooleantrueWhether the tooltip floats with smooth animation
zIndexnumberCustom stacking order for tooltip and ring
classNamestringOptional custom CSS class for the wrapper
tooltipClassNamestringOptional custom CSS class for the tooltip
ringClassNamestringOptional custom CSS class for the ring
persistentbooleanfalseWhen true, the nudge remains visible permanently and ignores duration

Styling

You can customize the styles either via props or by overriding CSS classes:

  • .nudge-wrapper — wrapper div
  • .nudge-ring — animated ring element
  • .nudge-tooltip — tooltip container

License

MIT © Jeremie Nombro

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

Author

Jeremie Nombro

FAQs

Package last updated on 06 Mar 2026

Did you know?

Socket

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.

Install

Related posts