Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-ripple-btn

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-ripple-btn

`react-ripple-btn` is a lightweight and customizable React component that provides a beautiful ripple effect on button clicks. It's designed to enhance the user interface of your React applications with a visually appealing interaction effect.

  • 1.0.2
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by300%
Maintainers
1
Weekly downloads
 
Created
Source

React Ripple Button

Overview

react-ripple-btn is a lightweight and customizable React component that provides a beautiful ripple effect on button clicks. It's designed to enhance the user interface of your React applications with a visually appealing interaction effect.

Installation

To install react-ripple-btn, run the following command in your project directory:

npm i react-ripple-btn

Usage

import React from 'react';
import { RippleBtn } from 'react-ripple-btn';

const MyComponent = () => {
  return (
    <RippleBtn color="white" duration={800} className="bg-red-500 p-2 rounded-xl">
      Hello how
    </RippleBtn>
  );
};

Props

The RippleBtn component accepts the following props:

  • color: The color of the ripple effect. It can be any valid CSS color value. Default is white.
  • duration: The duration of the ripple effect in milliseconds. Default is 850.
  • className: Additional CSS classes to apply to the button. This can be used to style the button as needed.

Customization

You can customize the appearance of the RippleBtn component using the className prop. This allows you to apply any CSS styles you need. For example, you can change the background color, padding, border radius, and more.

Contributing

Contributions are welcome! If you have a feature request, bug report, or want to contribute code, please open an issue or submit a pull request.

License

react-ripple-btn is licensed under the MIT License. See the LICENSE file for more details.

FAQs

Package last updated on 31 Mar 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc