You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
5 years ago | |
---|---|---|
.. | ||
dist | 5 years ago | |
es | 5 years ago | |
lib | 5 years ago | |
HISTORY.md | 5 years ago | |
README.md | 5 years ago | |
package.json | 5 years ago |
README.md
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 (set to false to disable click feedback) | 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.