Home / Function/ DragHandle() — ui Function Reference

DragHandle() — ui Function Reference

Architecture documentation for the DragHandle() function in data-table.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  fcfebbeb_ee84_9975_d455_4972e36890c1["DragHandle()"]
  6a6af1c4_3fdf_13b4_2930_fe15824d5235["data-table.tsx"]
  fcfebbeb_ee84_9975_d455_4972e36890c1 -->|defined in| 6a6af1c4_3fdf_13b4_2930_fe15824d5235
  style fcfebbeb_ee84_9975_d455_4972e36890c1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/blocks/dashboard-01/components/data-table.tsx lines 120–137

function DragHandle({ id }: { id: number }) {
  const { attributes, listeners } = useSortable({
    id,
  })

  return (
    <Button
      {...attributes}
      {...listeners}
      variant="ghost"
      size="icon"
      className="text-muted-foreground size-7 hover:bg-transparent"
    >
      <IconGripVertical className="text-muted-foreground size-3" />
      <span className="sr-only">Drag to reorder</span>
    </Button>
  )
}

Subdomains

Frequently Asked Questions

What does DragHandle() do?
DragHandle() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/blocks/dashboard-01/components/data-table.tsx.
Where is DragHandle() defined?
DragHandle() is defined in apps/v4/registry/new-york-v4/blocks/dashboard-01/components/data-table.tsx at line 120.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free