# react-swedish-personal-identity-number-input

> A higher order component for formatting values in input elements as Swedish personal identity numbers

Latest version **0.4.3** (published 2019-07-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-swedish-personal-identity-number-input
pnpm add react-swedish-personal-identity-number-input
yarn add react-swedish-personal-identity-number-input
bun add react-swedish-personal-identity-number-input
```

## Health

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

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

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.3 |
| Published | 2019-07-29 |
| First published | 2018-02-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Jonathan Svenheden |
| Maintainers | jonathanp |

## Links

- npm: https://www.npmjs.com/package/react-swedish-personal-identity-number-input
- Repository: https://github.com/svenheden/react-swedish-personal-identity-number-input
- Homepage: https://github.com/svenheden/react-swedish-personal-identity-number-input#readme
- Issues: https://github.com/svenheden/react-swedish-personal-identity-number-input/issues
- npm.io page: https://npm.io/package/react-swedish-personal-identity-number-input

## Recent versions

- 0.4.3 (latest) — 2019-07-29
- 0.4.2 — 2019-04-27
- 0.4.1 — 2018-03-12
- 0.4.0 — 2018-02-09
- 0.3.0 — 2018-02-08
- 0.2.0 — 2018-02-07
- 0.1.0 — 2018-02-07

## README

# React Swedish personal identity number input

A higher order component for formatting values in input elements as Swedish personal identity numbers


[![Build Status][travis-image]][travis-url]
[![NPM version][npm-image]][npm-url]


## Install

```
$ npm install --save react-swedish-personal-identity-number-input
```


## Usage

```ts
import React from 'react';
import { createSwedishPersonalIdentityNumberInput } from 'react-swedish-personal-identity-number-input';

const YourInputComponent = ({ innerRef, ...rest }) => {
  return <input ref={innerRef} {...rest} />;
}

const SwedishPersonalIdentityNumberInput = createSwedishPersonalIdentityNumberInput(YourInputComponent);

const Demo = () => {
  const [value, setValue] = React.useState();

  return <SwedishPersonalIdentityNumberInput value={value} onChange={setValue} />;
}
```


## License

MIT © [Jonathan Svenheden](https://github.com/svenheden)

[npm-url]: https://npmjs.org/package/react-swedish-personal-identity-number-input
[npm-image]: https://badge.fury.io/js/react-swedish-personal-identity-number-input.svg
[travis-image]: https://travis-ci.org/svenheden/react-swedish-personal-identity-number-input.svg
[travis-url]: https://travis-ci.org/svenheden/react-swedish-personal-identity-number-input

---
_Source: https://npm.io/package/react-swedish-personal-identity-number-input · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
