DragHandle() — ui Function Reference
Architecture documentation for the DragHandle() function in data-table.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 31f124c2_385a_4a31_257d_140b23c5a2e9["DragHandle()"] a6b39163_9811_63c6_eb90_b75e627922f8["data-table.tsx"] 31f124c2_385a_4a31_257d_140b23c5a2e9 -->|defined in| a6b39163_9811_63c6_eb90_b75e627922f8 style 31f124c2_385a_4a31_257d_140b23c5a2e9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/app/(examples)/dashboard/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>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does DragHandle() do?
DragHandle() is a function in the ui codebase, defined in apps/v4/app/(examples)/dashboard/components/data-table.tsx.
Where is DragHandle() defined?
DragHandle() is defined in apps/v4/app/(examples)/dashboard/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