3.0.6 • Published 15 days ago
@types/react-input-mask v3.0.6
Installation
npm install --save @types/react-input-mask
Summary
This package contains type definitions for react-input-mask (https://github.com/sanniassin/react-input-mask).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-input-mask/v1.
index.d.ts
// Type definitions for react-input-mask 1.2
// Project: https://github.com/sanniassin/react-input-mask
// Definitions by: Alexandre Paré <https://github.com/apare>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from "react";
declare namespace ReactInputMask {
interface Props extends React.InputHTMLAttributes<HTMLInputElement> {
/**
* Mask string. Format characters are:
* * `9`: `0-9`
* * `a`: `A-Z, a-z`
* * `\*`: `A-Z, a-z, 0-9`
*
* Any character can be escaped with backslash, which usually will appear as double backslash in JS strings.
* For example, German phone mask with unremoveable prefix +49 will look like `mask="+4\\9 99 999 99"` or `mask={"+4\\\\9 99 999 99"}`
*/
mask: string;
/**
* Character to cover unfilled editable parts of mask. Default character is "_". If set to null, unfilled parts will be empty, like in ordinary input.
*/
maskChar?: string | null | undefined;
/**
* Defines format characters with characters as keys and corresponding RegExp string as values. Default ones:
* ```
* {
* "9": "[0-9]",
* "a": "[A-Za-z]",
* "*": "[A-Za-z0-9]"
* }```
*/
formatChars?: { [key: string]: string } | undefined;
/**
* Show mask even in empty input without focus.
*/
alwaysShowMask?: boolean | undefined;
/**
* Use inputRef instead of ref if you need input node to manage focus, selection, etc.
*/
inputRef?: React.Ref<HTMLInputElement> | undefined;
}
}
declare class ReactInputMask extends React.Component<ReactInputMask.Props> {
}
export default ReactInputMask;
Additional Details
- Last updated: Wed, 07 Jul 2021 17:33:46 GMT
- Dependencies: @types/react
- Global values: none
Credits
These definitions were written by Alexandre Paré.
3.0.6
15 days ago
1.2.6
1 year ago
1.2.5
1 year ago
3.0.4
1 year ago
3.0.3
1 year ago
3.0.5
1 year ago
3.0.2
2 years ago
3.0.1
3 years ago
1.2.4
3 years ago
3.0.0
4 years ago
2.0.5
5 years ago
2.0.4
5 years ago
2.0.3
5 years ago
2.0.2
5 years ago
2.0.1
6 years ago
2.0.0
6 years ago
1.2.3
6 years ago
1.2.2
6 years ago
1.2.1
7 years ago
1.2.0
7 years ago
0.7.8
7 years ago
0.7.7
7 years ago
0.7.6
7 years ago
0.7.5
7 years ago
0.7.4
8 years ago
0.7.3
8 years ago
0.7.2
8 years ago
0.7.1
8 years ago
0.7.0
8 years ago