rmc-trigger
v1.0.12
Published
base abstract trigger component for react mobile
Downloads
73,218
Readme
rmc-trigger
React Trigger Component
Development
npm install
npm start
Example
http://localhost:8200/examples/
online example: http://react-component.github.io/trigger/examples/
Feature
- supported on IE 8+, Chrome, Firefox, and Safari
install
Usage
Include the default styling and then:
import React from 'react';
import ReactDOM from 'react-dom';
import Trigger from 'rmc-trigger';
ReactDOM.render((
<Trigger
popup={<span>popup</span>}
popupAlign={{
points: ['tl', 'bl'],
offset: [0, 3]
}}
>
<a href='#'>hover</a>
</Trigger>
), container);
API
props
Test Case
npm test
npm run chrome-test
Coverage
npm run coverage
open coverage/ dir
License
rmc-trigger is released under the MIT license.