react-hashtag-mask
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Unsplash welcome! License License Stars Languages

Tiny input mask library for React.js (directive)

Quick Start

  1. Initialization
npm install react-hashtag-mask
# or
yarn add react-hashtag-mask
  1. Usage
import { InputMask } from 'react-hashtag-mask';

export const MyComponent = () => {
  return (
    <div>
      <InputMask type="number" mask="##/##/#### ##:##" placeholder="Write here..." />
    </div>
  );
};

Notice: returns a pure HTML input, you could put css or do what you would do with a normal input tag

Exemple

Mask Exemple

License

MIT © Yazalde Filimone

Package Sidebar

Install

npm i react-hashtag-mask

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

6.18 kB

Total Files

8

Last publish

Collaborators

  • yazaldefilimone