Package Exports
- rmc-feedback
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rmc-feedback) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
rmc-feedback
:active pseudo-class with react/preact for mobile
Installation
npm install --save rmc-feedback
Development
npm install
npm start
Example
Usage
import TouchFeedback from 'rmc-feedback';
<TouchFeedback activeClassName="acitve" activeStyle={{ color: 'red'}} disabled={false}>
<div>click to active</div>
</TouchFeedback>
API
props
name | description | type | default |
---|---|---|---|
disabled | boolean | false | |
activeClassName | className applied to child when active | string | |
activeStyle | style applied to child when active | object | - |
Test Case
npm test
npm run chrome-test
Coverage
npm run coverage
open coverage/ dir
License
rmc-feedback is released under the MIT license.