@base-ui-components/react
Version:
Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
25 lines • 593 B
TypeScript
interface GetPushedThumbValuesParams {
values: readonly number[];
index: number;
nextValue: number;
min: number;
max: number;
step: number;
minStepsBetweenValues: number;
initialValues?: readonly number[];
}
/**
* Returns a new array of slider values where attempting to move the thumb at `index`
* beyond its neighbours "pushes" them while respecting `minStepsBetweenValues`.
*/
export declare function getPushedThumbValues({
values,
index,
nextValue,
min,
max,
step,
minStepsBetweenValues,
initialValues
}: GetPushedThumbValuesParams): number[];
export {};