# happy-inputs

> Happy form inputs

Latest version **2.1.0** (published 2020-04-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install happy-inputs
pnpm add happy-inputs
yarn add happy-inputs
bun add happy-inputs
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2020-04-21 |
| First published | 2019-10-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 23.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Pavel Janda |
| Maintainers | paveljanda |
| Keywords | forms, inputs, happy, checkbox, radio |

## Links

- npm: https://www.npmjs.com/package/happy-inputs
- Repository: https://github.com/paveljanda/happy
- Homepage: https://github.com/paveljanda/happy#readme
- Issues: https://github.com/paveljanda/happy/issues
- npm.io page: https://npm.io/package/happy-inputs

## 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.1.0 (latest) — 2020-04-21
- 2.0.4 — 2019-10-10
- 2.0.3 — 2019-10-10
- 2.0.2 — 2019-10-10
- 2.0.1 — 2019-10-07
- 2.0.0 — 2019-10-07

## README

# Happy components

See [demo](http://paveljanda.github.io/happy/)

## Installation

```bash
npm install happy-inputs
```

## Usage

```html
<!DOCTYPE html>
<html>
<head>
	<title>Happy</title>
	<link rel="stylesheet" type="text/css" href="./node_modules/happy-inputs/src/happy.css">

	<script type="module">
		import happy from './node_modules/happy-inputs/src/index.js';

		Happy.init();
	</script>
</head>
<body>
	<!-- Default (black) radio -->
	<label>
		<input class="happy" type="radio" name="animal" value="dog"> A dog
	</label>

	<!-- Default (black) checkbox -->
	<label>
		<input class="happy" type="checkbox" name="hungry"> Hungry
	</label>

	<!-- Colored (as you are used to from Bootstrap) radio -->
	<label>
		<input class="happy success" type="radio" name="animal" value="dog"> A dog
	</label>

	<!-- Colored (as you are used to from Bootstrap) checkbox -->
	<label>
		<input class="happy primary" type="checkbox" name="hungry"> Hungry
	</label>
</body>
</html>
```

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