0.0.5 • Published 12 months ago
react-nipplejs v0.0.5
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
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.