# rmc-feedback

> :active pseudo-class with react for mobile

Latest version **2.0.0** (published 2018-05-04) · 0 weekly downloads

## Install

```sh
npm install rmc-feedback
pnpm add rmc-feedback
yarn add rmc-feedback
bun add rmc-feedback
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2018-05-04 |
| First published | 2017-09-07 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 167.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 36 |
| Author | rjmuqiang@gmail.com |
| Maintainers | kgtong, paranoidjk, silentcloud, warmhug |
| Keywords | react, react-component, touch feeedback, rc-swipeout, active pseudo |

## Links

- npm: https://www.npmjs.com/package/rmc-feedback
- Repository: https://github.com/react-component/m-feedback
- Issues: https://github.com/react-component/m-feedback/issues
- npm.io page: https://npm.io/package/rmc-feedback

## Dependencies (2)

- [classnames](https://npm.io/package/classnames.md) ^2.2.5
- [babel-runtime](https://npm.io/package/babel-runtime.md) 6.x

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2018-05-04
- 1.0.4 — 2018-01-05
- 1.0.3 — 2017-11-09
- 1.0.2 — 2017-10-17
- 1.0.1 — 2017-09-19
- 1.0.0 — 2017-09-08
- 0.0.3 — 2017-09-07
- 0.0.2 — 2017-09-07
- 0.0.1 — 2017-09-07

## README

# rmc-feedback
---

:active pseudo-class with react/preact for mobile

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]

[npm-image]: http://img.shields.io/npm/v/rmc-feedback.svg?style=flat-square
[npm-url]: http://npmjs.org/package/rmc-feedback
[travis-image]: https://img.shields.io/travis/react-component/m-feedback.svg?style=flat-square
[travis-url]: https://travis-ci.org/react-component/m-feedback
[coveralls-image]: https://img.shields.io/coveralls/react-component/m-feedback.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/react-component/m-feedback?branch=master

## Installation

`npm install --save rmc-feedback`

## Development

```
npm install
npm start
```

## Example

- local: http://localhost:8000/examples/
- online: http://react-component.github.io/m-feedback/

## Usage

```js
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.

---
_Source: https://npm.io/package/rmc-feedback · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
