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
  c93681b5_3cf6_2804_99a9_06f1a64c1a6c["DragHandle()"]
  d3cd7675_a22f_8fdf_eec9_5f6b6d751feb["data-table.tsx"]
  c93681b5_3cf6_2804_99a9_06f1a64c1a6c -->|defined in| d3cd7675_a22f_8fdf_eec9_5f6b6d751feb
  style c93681b5_3cf6_2804_99a9_06f1a64c1a6c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/blocks/dashboard-01/components/data-table.tsx lines 108–132

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"
    >
      <IconPlaceholder
        lucide="GripVerticalIcon"
        tabler="IconGripVertical"
        hugeicons="DragDropVerticalIcon"
        phosphor="DotsSixVerticalIcon"
        remixicon="RiDraggable"
        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/bases/radix/blocks/dashboard-01/components/data-table.tsx.
Where is DragHandle() defined?
DragHandle() is defined in apps/v4/registry/bases/radix/blocks/dashboard-01/components/data-table.tsx at line 108.

Analyze Your Own Codebase

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

Try Supermodel Free