@adaptui/react
Version:
Collection of headless components/hooks that are accessible, composable, customizable from low level to build your own UI & Design System powered by Reakit
10 lines (9 loc) • 365 B
TypeScript
export declare function clamp(value: number | null, min: number, max: number): number | null;
/**
* Convert a value to percentage based on lower and upper bound values
*
* @param value the value in number
* @param min the minimum value
* @param max the maximum value
*/
export declare function valueToPercent(value: number, min: number, max: number): number;