rmc-feedback
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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.

Package Sidebar

Install

npm i rmc-feedback

Weekly Downloads

90,756

Version

2.0.0

License

none

Unpacked Size

171 kB

Total Files

18

Last publish

Collaborators

  • kgtong
  • paranoidjk
  • silentcloud
  • warmhug