react-hashtag-mask
v1.0.2
Published
Tiny input mask library for React.js (directive)
Downloads
12
Maintainers
Readme
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