react-nipplejs
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

react-nipplejs

Nipplejs component built with React

import Nipple from 'react-nipplejs';

// If you use CommonJS syntax:
// cost Nipple = require('react-nipplejs').default;

React.renderComponent(
  <div>
    <Nipple />
  </div>,
);

Install

npm install react-nipplejs

yarn react-nipplejs

Demo

Demo & Documentation

Props

prop type description
options Object options
onStart func start
onMove func move
onEnd func end
onDir func dir
onPlain func plain
onShown func shown
onHidden func hidden
onPressure func pressure

Apart from these, the component accepts all props that are accepted by <div/>, like style, className, etc.

Github repo

Package Sidebar

Install

npm i react-nipplejs

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

13.1 kB

Total Files

10

Last publish

Collaborators

  • malmgrenola