# sanniassin/react-input-mask

Input masking component for React. Made with attention to UX.

Repository: https://github.com/sanniassin/react-input-mask
Canonical: https://ross.abutalabs.com/products/react-input-mask
Language: JavaScript
License: MIT
License Family: permissive
Archived: true
Last push: 2024-08-01T00:59:19+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4099, "days_push": 763, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2278, forks 260 (observed 2026-08-28T04:06:33.575482+00:00)

## What it is
A React component for masking text inputs, supporting masks defined as strings or arrays of characters and regular expressions. It focuses on UX with features like mask placeholders and custom rendering for integration with other input components.

## Use cases
- format phone number input in react
- mask date input field
- restrict input to digits with a pattern
- add input mask to credit card field
- masked input component for react forms
- show placeholder for unfilled mask parts

## When to choose
- you need a lightweight, well-established React input masking component
- you need masks with placeholders and custom character rules
- you want to wrap other React input components with a mask

## When to avoid
- you are not using React
- you need masking outside of text inputs
- you need a solution actively adding new features

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, form-handling
- domain: frontend, web-development
- platform: -
- tags: react, input-mask, masked-input, form-input, web-server, nodejs

## Member repositories
- sanniassin/react-input-mask (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:33.575482+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:41:25.195644+00:00, confidence not recorded.
  - readme: https://github.com/sanniassin/react-input-mask (fetched 2026-08-28T04:06:33.575482+00:00, sha 5b5875ad99e5)
  - registry_npm: https://registry.npmjs.org/react-input-mask (fetched 2026-08-29T10:22:01.730510+00:00, sha f72b101f4368)
- Data as of 2026-08-30T08:39:29.467469+00:00.
