UNPKG

@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

7 lines (6 loc) • 404 B
import { useEffect } from 'react'; import type { DndController } from './controller.js'; export declare const DndContext: import("react").Context<DndController | null>; /** The nearest `Dnd` scope's controller. Throws outside one, naming the hook that needs it. */ export declare function useDndController(caller: string): DndController; export declare const useIsomorphicLayoutEffect: typeof useEffect;