UNPKG

@progress/kendo-react-common

Version:

React Common package delivers common utilities that can be used with the KendoReact UI components. KendoReact Common Utilities package

30 lines (29 loc) 1.06 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ /** * Represents additional configuration options for the `autoScroll` options of the `useDraggable` hook and `Draggable` component. */ export interface AutoScrollOptions { /** * Set to `false` to disable the `autoScroll` feature. */ enabled?: boolean; /** * Allows the user to toggle `autoScroll` in a specific direction. */ direction?: { horizontal: boolean; vertical: boolean; }; /** * Overrides the calculated element used for boundary detection, used to calculate the `autoScroll` velocity. */ boundaryElementRef?: React.RefObject<HTMLElement | null | { element: HTMLElement | null; }> | null; }