@awsui/components-react
Version:
AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A
9 lines (8 loc) • 510 B
TypeScript
import MaskFormat from './utils/mask-format';
export interface HandlerResult {
position: number;
value: string;
}
export declare const backspaceHandler: (initialValue: string, format: MaskFormat, selectionStart: number, selectionEnd: number) => HandlerResult;
export declare const keyHandler: (initialValue: string, key: string, format: MaskFormat, selectionStart: number, selectionEnd: number) => HandlerResult;
export declare const enterHandler: (value: string, format: MaskFormat) => HandlerResult;