dw-neit-rc-component-trigger
v2.2.0
Published
base abstract trigger component for react
Downloads
39
Maintainers
Readme
dw-neit-rc-trigger
React Trigger Component
Install
Usage
Include the default styling and then:
import React from 'react';
import ReactDOM from 'react-dom';
import Trigger from 'dw-neit-rc-component-trigger';
ReactDOM.render((
<Trigger
action={['click']}
popup={<span>popup</span>}
popupAlign={{
points: ['tl', 'bl'],
offset: [0, 3]
}}
>
<a href='#'>hover</a>
</Trigger>
), container);
Compatibility
| IE / Edge | Firefox | Chrome | Safari | Electron | | --- | --- | --- | --- | --- | | IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
Example
http://localhost:9001
Development
npm install
npm start
API
props
Test Case
npm test
npm run coverage
open coverage/ dir
License
rc-trigger is released under the MIT license.