# react-hover-flip

> A react component that will flip on hover

Latest version **0.4.6** (published 2021-09-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-hover-flip
pnpm add react-hover-flip
yarn add react-hover-flip
bun add react-hover-flip
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.6 |
| Published | 2021-09-07 |
| First published | 2021-09-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | KaKeng Loh |
| Maintainers | kakengloh |
| Keywords | react, hover, flip, card |

## Links

- npm: https://www.npmjs.com/package/react-hover-flip
- Repository: https://github.com/kakengloh/react-hover-flip
- Issues: https://github.com/kakengloh/react-hover-flip
- npm.io page: https://npm.io/package/react-hover-flip

## 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

- 0.4.6 (latest) — 2021-09-07
- 0.4.4 — 2021-09-07
- 0.4.3 — 2021-09-07
- 0.4.2 — 2021-09-05
- 0.4.1 — 2021-09-05
- 0.4.0 — 2021-09-05
- 0.3.0 — 2021-09-05
- 0.2.0 — 2021-09-05
- 0.1.0 — 2021-09-05

## README

# react-hover-flip

`react-hover-flip` is a simple react component that will flip on hover.

[Demo](https://react-hover-flip.surge.sh)

## Installation

Using npm
```bash
npm i react-hover-flip
```

Using yarn
```bash
yarn add react-hover-flip
```


## CRA Usage

```tsx
import ReactHoverFlip from 'react-hover-flip'

const Front = <h1>Front!</h1>
const Back = <h1>Back!</h1>

<ReactHoverFlip
  front={Front}
  back={Back}
  direction="horizontal"
  height={100}
  width={100}
/>
```

## Next.js usage
```tsx
// YourComponent.tsx
import 'react-hover-flip/lib/esm/index.css' // import css
import dynamic from 'next/dynamic'

// Lazy load ReactHoverFlip as it is a pure react component 
const ReactHoverFlip = dynamic(() => import('react-hover-flip/lib/esm/index-nostyle'), { ssr: false })

const YourComponent = () => {
  const Front = <h1>Front!</h1>
  const Back = <h1>Back!</h1>

  return (
    <ReactHoverFlip
      front={Front}
      back={Back}
      direction="horizontal"
      height={100}
      width={100}
    />
  )
}
```

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.


## License
[MIT](https://choosealicense.com/licenses/mit/)

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