@ozen-ui/kit
Version:
React component library
12 lines (11 loc) • 515 B
TypeScript
import type { KeyboardEvent } from 'react';
import type { InputNumberValue, InputNumberCountDirection } from './types';
export declare const isValidValue: (value?: InputNumberValue) => boolean;
export declare const isInputInvalid: (event: KeyboardEvent<HTMLInputElement>) => boolean;
export declare const getValue: ({ value, step, min, max, countDirection, }: {
value?: InputNumberValue;
countDirection: InputNumberCountDirection;
min: number;
max: number;
step: number;
}) => InputNumberValue;