Gem 一覧へ戻る
react-component/m-feedback(新しいタブで開きます)
主要言語: TypeScript
:active pseudo-class with react for mobile
- star 数
- 36
- watcher 数
- 2
- fork 数
- 10
- issue 数
- 9
- 最終更新
- 2021/07/27
主要言語: TypeScript
:active pseudo-class with react for mobile
:active pseudo-class with react/preact for mobile
npm install --save rmc-feedback
npm install
npm start
import TouchFeedback from 'rmc-feedback'; <TouchFeedback activeClassName="acitve" activeStyle={{ color: 'red'}} disabled={false}> <div>click to active</div> </TouchFeedback>
| 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 | - |
npm test
npm run chrome-test
npm run coverage
open coverage/ dir
rmc-feedback is released under the MIT license.