@mitcsutt/kiln-dnd
Version:
Kiln drag and drop: sortable lists, boards, drop zones and grid layouts with one keyboard model and one announcer, rendered through kiln-ui
12 lines (11 loc) • 501 B
TypeScript
import type { DragHandleAttributes } from '../../core/useDragSource.js';
/** What a draggable item hands its `DragHandle`. */
export interface HandleContextValue {
handleRef: (element: HTMLElement | null) => void;
handleProps: DragHandleAttributes;
/** The item's name, for the handle's accessible name. */
label: string;
/** The item can't be picked up right now. */
disabled: boolean;
}
export declare const HandleContext: import("react").Context<HandleContextValue | null>;