6.5.4 • Published 11 months ago

react-ink v6.5.4

Weekly downloads
39,050
License
MIT
Repository
github
Last release
11 months ago

React Ink

CircleCI npm npm

Add the Material Design ripple effect to React component.

Ink Gif

Usage

Ink must be placed within another component with a position is not static (so relative, fixed, or absolute).

import React from 'react'
import Ink from 'react-ink'

const InkeyButton () => {
  return (
    <button style={{ position: "relative" }}>
      <Ink />
    </button>
  )
}

There are several options available for how <Ink /> renders, see the getDefaultProps() declaration, however descriptions follow:

Configuration

{
  background : true,      // When true, pressing the ink will cause the background to fill with the current color
  duration   : 1000,      // Duration of the full animation completion
  opacity    : 0.25,      // The opacity of the ink blob
  radius     : 150,       // The size of the effect, will not exceed bounds of containing element
  recenter   : true,      // When true, recenter will pull ink towards the center of the containing element
  style      : {...},     // See src/style.js. Any rules set here will extend these values
  hasTouch   : true|false // Override internal hasTouch detection
}

Visit code.viget.com to see more projects from Viget.

6.5.4

11 months ago

6.5.2

2 years ago

6.5.3

2 years ago

6.5.0

3 years ago

6.5.1

3 years ago

6.4.0

6 years ago

6.3.0

6 years ago

6.2.0

7 years ago

6.1.1

7 years ago

6.1.0

7 years ago

6.1.0-rc

7 years ago

6.0.1

7 years ago

6.0.0

7 years ago

5.1.1

8 years ago

5.1.0

8 years ago

5.0.2

9 years ago

5.0.1

9 years ago

5.0.0

9 years ago

4.1.0

9 years ago

4.0.0

9 years ago

4.0.0-rc5

9 years ago

4.0.0-rc4

9 years ago

4.0.0-rc3

9 years ago

4.0.0-rc2

9 years ago

4.0.0-rc1

9 years ago

3.3.1

9 years ago

3.3.0

9 years ago

3.2.0

9 years ago

3.1.0

9 years ago

3.0.0

9 years ago

2.4.0

9 years ago

2.3.0

9 years ago

2.2.1

9 years ago

2.2.0

9 years ago

2.1.0

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.0.4

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago