1.3.0 • Published 1 year ago

react-ripple-click v1.3.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year 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.3.0

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago

0.2.2

1 year ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago