JSPM

@cube-00y/use-ripple

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q54159F
  • License MIT

React ripple effect custom hooks

Package Exports

  • @cube-00y/use-ripple

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@cube-00y/use-ripple) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

React Ripple Effect

Ripple Effect Custom Hooks

Installation

$ npm install @cube00y-react/use-ripple

Example

import { useEffect } from 'react';
import { useRipple } from '@cube00y-react/use-ripple';

function App() {
    useEffect(useRipple);
    
    return (
        <div>
            <div data-ripple="dark">Ripple !!</div>
        </div>
    );
}

export default App;

Option

Name Type Values
data-ripple String Default: rgba(0, 0, 0, 0.35)

dark: rgba(0, 0, 0, 0.35)
light: rgba(255, 255, 255, 0.35)