ratio-lock
Version:
A TypeScript library for managing n numbers with locked ratios. When the ratio is locked, changing one value automatically adjusts all other values to maintain their proportional relationships.
14 lines • 408 B
TypeScript
import type { ChangeEvent } from 'react';
/**
* Field props returned for each field
* @typeParam TName - The literal field name type
*/
export interface FieldProps<TName extends string = string> {
/** Field name */
name: TName;
/** Field value */
value: number;
/** Change handler */
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
}
//# sourceMappingURL=field-props.d.ts.map