# hovertile

> A port of Mary Lou's hover tiles to React

Latest version **0.1.2** (published 2016-02-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install hovertile
pnpm add hovertile
yarn add hovertile
bun add hovertile
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2016-02-12 |
| First published | 2016-02-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jerry Zhou |
| Maintainers | looklikeapro |
| Keywords | React, Hover, Design, CSS, Component, Module |

## Links

- npm: https://www.npmjs.com/package/hovertile
- Repository: https://github.com/LookLikeAPro/HoverTiles
- Homepage: https://github.com/LookLikeAPro/HoverTiles#readme
- Issues: https://github.com/LookLikeAPro/HoverTiles/issues
- npm.io page: https://npm.io/package/hovertile

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2016-02-12
- 0.1.1 — 2016-02-12
- 0.1.0 — 2016-02-12

## README

# HoverTiles

A port of Mary Lou's hover tiles to React

Uses composable components to allow extensive customization inside components.

## Usage

Hover Tiles is intended for use as a react component. Required environment includes:

	- ES6 (Webpack/Babel)
	- Stlye Loader (Webpack resource loader)

Install:

	npm install hovertile

Use:

	//Import

	import React, {Component, PropTypes} from "react";

	import Apollo from "components/HoverTile/Apollo";

	import TileContent from "components/HoverTile/Content";
	import TileHoverContent from "components/HoverTile/HoverContent";
	import TileClickbox from "components/HoverTile/Clickbox";
	import TileBackground from "components/HoverTile/Background";

	//Use as a normal react component
	class YourComponent extends React {
		render() {
			return (
				<Apollo>
					<TileBackground><img src="/image/source"/></TileBackground>
					<TileContent>Default content</TileContent>
					<TileHoverContent>Content that shows upon hover</TileHoverContent>
					<TileClickbox><a>Clickbox over the whole tile</a></TileClickbox>
				</Apollo>
			);
		}
	}

	//Image shortcut
	class YourComponent extends React {
		render() {
			return (
				<Apollo image="/image/source">
					<TileContent>Default content</TileContent>
					<TileHoverContent>Content that shows upon hover</TileHoverContent>
					<TileClickbox><a>Clickbox over the whole tile</a></TileClickbox>
				</Apollo>
			);
		}
	}


# Example

See example react project at [HoverTiles-Example](https://github.com/LookLikeAPro/HoverTiles-Example)

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