For AI agents: the documentation index is at llms.txt. Markdown versions are available by appending .md to any page URL, including this page's markdown.
useDndGridItemState
Read the current item and interaction state.
useDndGridItemState exposes the active item's layout data and interaction
state. Use it to show drag/resize UI, badges, or inline controls.
Example
import { useState } from "react";
import { DndGrid, type Layout, useDndGridItemState } from "@dnd-grid/react";
import "@dnd-grid/react/styles.css";
const initialLayout:
Published with Edda