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
Tiny input mask library for React.js (directive)
Quick Start
- Initialization
npm install react-hashtag-mask
# or
yarn add react-hashtag-mask
- 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