Table of Contents

Method UseDndContext

Namespace
Velvet
Assembly
Velvet.Docs.dll

UseDndContext()

Returns the drag the nearest V.DndContext holds — dnd-kit's useDndContext. The component re-renders when the active draggable, the target it is over, the collision ranking or the active rect changes. Returns Idle under no V.DndContext, including under a scope declared only through DndContext.

public static DndContextState UseDndContext()

Returns

DndContextState

The scope's current drag state.