Table of Contents

Method UseDroppable

Namespace
Velvet
Assembly
Velvet.Docs.dll

UseDroppable(string)

Returns the drag state of the droppable id names under the nearest V.DndContext — dnd-kit's useDroppable, read-only: the element still carries V.Droppable or the Droppable slot. The component re-renders when the active draggable or the target it is over changes.

public static DroppableState UseDroppable(string id)

Parameters

id string

The droppable's id. Must not be null.

Returns

DroppableState

The droppable's current drag state.