react-numeric-component
Version:
react-component react currency input number number-format mask
8 lines (7 loc) • 820 B
TypeScript
import React from 'react';
import { NumericFormatProps, ChangeMeta, InputAttributes, NumberFormatBaseProps } from "../../type";
export declare function format<BaseType = InputAttributes>(numStr: string, props: NumericFormatProps<BaseType>): string;
export declare function removeFormatting<BaseType = InputAttributes>(value: string, changeMeta: ChangeMeta | undefined, props: NumericFormatProps<BaseType>): string;
export declare function getCaretBoundary<BaseType = InputAttributes>(formattedValue: string, props: NumericFormatProps<BaseType>): boolean[];
export declare function useNumericFormat<BaseType = InputAttributes>(props: NumericFormatProps<BaseType>): NumberFormatBaseProps<BaseType>;
export default function NumericFormat<BaseType = InputAttributes>(props: NumericFormatProps<BaseType>): React.JSX.Element;