rmc-feedback
:active pseudo-class with react for mobile
Last updated 7 years ago by kgtong .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install rmc-feedback 
SYNC missed versions from official npm registry.

rmc-feedback


:active pseudo-class with react/preact for mobile

NPM version build status Test coverage

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.

Current Tags

  • 2.0.0                                ...           latest (7 years ago)

9 Versions

  • 2.0.0                                ...           7 years ago
  • 1.0.4                                ...           7 years ago
  • 1.0.3                                ...           7 years ago
  • 1.0.2                                ...           7 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
  • 0.0.3                                ...           7 years ago
  • 0.0.2                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (9)

© 2010 - cnpmjs.org x YWFE | Home | YWFE