DefinitelyTyped/types/react-input-mask/react-input-mask-tests.tsx
Dima Danyliuk c6192b5b94 Improve declaration file for "react-input-mask"
- move declaration for previous major version into v1 folder
 - remove module declaration construction
2018-08-09 20:52:49 +03:00

14 lines
502 B
TypeScript

import ReactInputMask from 'react-input-mask';
import * as React from 'react';
let ref: HTMLInputElement | null = null;
<div>
<ReactInputMask mask="+4\9 99 999 99" maskChar={null} />
<ReactInputMask mask="+7 (999) 999-99-99" />
<ReactInputMask mask="99-99-9999" defaultValue="13-00-2017" />
<ReactInputMask mask="99/99/9999" placeholder="Enter birthdate" />
<ReactInputMask mask="+7 (999) 999-99-99" />
<ReactInputMask mask="+7 (999) 999-99-99" inputRef={(node) => ref = node} />
</div>;