@matthew.ngo/react-form-kit
Version:
Form Kit for React. It consists of a set of components that can be used to create complex forms in a simple and declarative way.
18 lines (17 loc) • 494 B
TypeScript
interface UseNumberInputProps {
value?: number;
defaultValue?: number;
min?: number;
max?: number;
step?: number;
precision?: number;
onChange?: (value: number) => void;
clampValue?: boolean;
}
export declare const useNumberInput: ({ value, defaultValue, min, max, step, precision, onChange, clampValue, }: UseNumberInputProps) => {
value: number;
setValue: (newValue: number) => void;
increment: () => void;
decrement: () => void;
};
export {};