JSPM

react-hashtag-mask

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q28596F
  • License MIT

Tiny input mask library for React.js (directive)

Package Exports

  • react-hashtag-mask
  • react-hashtag-mask/dist/input-mask.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-hashtag-mask) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Unsplash welcome! License License Stars Languages

Tiny input mask library for React.js (directive)

Quick Start

  1. Initialization
npm install react-mask
# or
yarn add react-mask
  1. Usage
import { InputMask } from 'react-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