Skip to content

DndContextValue

Defined in: packages/react/src/components/ui/dnd/DndProvider.tsx:16

accordionStateRef: RefObject<Map<string, boolean>>

Defined in: packages/react/src/components/ui/dnd/DndProvider.tsx:33

Accordion open/closed state per stable key. Map<stableKey, boolean>. For array-item group fields: stableKey is the slot UUID from itemStableKeysRef. For top-level group fields: stableKey is the field name. Lives outside and survives every remount.


activeDroppableId: string | null

Defined in: packages/react/src/components/ui/dnd/DndProvider.tsx:19

The droppableId that currently owns the active drag, or null when idle.


itemStableKeysRef: RefObject<Map<string, (string | undefined)[]>>

Defined in: packages/react/src/components/ui/dnd/DndProvider.tsx:26

Stable UUID slots per droppable. Map<droppableId, UUID[]>. One UUID per array item slot. Shifted by moveItemStableKey on each drag to mirror TanStack Form’s moveValue — so a UUID follows its item across reorders. Lives outside and survives every remount.


mounted: boolean

Defined in: packages/react/src/components/ui/dnd/DndProvider.tsx:35

Whether the DnD is mounted on the client (false on server).


register: (id, handler) => () => void

Defined in: packages/react/src/components/ui/dnd/DndProvider.tsx:17

string

(from, to) => void

() => void