@carbon/ibm-products
Version:
Carbon for IBM Products
20 lines (19 loc) • 675 B
TypeScript
/**
* Copyright IBM Corp. 2025, 2025
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
interface DraggableProps {
el: HTMLElement;
dragHandle?: HTMLElement;
focusableDragHandle?: HTMLElement;
dragStep?: number;
shiftDragStep?: number;
}
/**
* Makes a given element draggable using a handle element.
*@param draggable - object which accepts el and optional attributes handle,focusableInHandle,dragStep and shiftDragStep
*/
export declare function makeDraggable({ el, dragHandle, focusableDragHandle, dragStep, shiftDragStep, }: DraggableProps): void;
export {};