1.2.0 • Published 3 months ago

react-ripple-click v1.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 months ago

React ripple click npm npm type definitions

Ripple effect for your buttons. Try interactive CodeSandbox demo or Storybook demo.

UI example

Installation

npm install react-ripple-click

How to use

import { Ripple } from 'react-ripple-click'
import 'react-ripple-click/dist/index.css'

const App = () => {
	return (
		<button
			style={{
				position: 'relative',
				overflow: 'hidden',
				isolation: 'isolate',
			}}
		>
			<Ripple />
			Click me
		</button>
	)
}

Custom overrides

Put to any parent element the following CSS custom properties to override the default ripple effect:

:root {
	--Ripple-custom-opacity: 0.2;
	--Ripple-custom-duration: 0.6s;
	--Ripple-custom-timing-function: ease-in;
	--Ripple-custom-color: currentColor;
}
1.2.0

3 months ago

1.1.0

4 months ago

1.0.0

4 months ago

0.2.2

4 months ago

0.2.1

6 months ago

0.2.0

6 months ago

0.1.1

6 months ago

0.1.0

6 months ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago