DragHandle() — ui Function Reference
Architecture documentation for the DragHandle() function in data-table.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 12dec4ee_1749_8ee3_f1aa_04662c04d49e["DragHandle()"] c4efa45e_6cce_3dec_3c41_b4fbc9755b38["data-table.tsx"] 12dec4ee_1749_8ee3_f1aa_04662c04d49e -->|defined in| c4efa45e_6cce_3dec_3c41_b4fbc9755b38 style 12dec4ee_1749_8ee3_f1aa_04662c04d49e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/new-york/blocks/dashboard-01/components/data-table.tsx lines 121–138
function DragHandle({ id }: { id: number }) {
const { attributes, listeners } = useSortable({
id,
})
return (
<Button
{...attributes}
{...listeners}
variant="ghost"
size="icon"
className="size-7 text-muted-foreground hover:bg-transparent"
>
<GripVerticalIcon className="size-3 text-muted-foreground" />
<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 deprecated/www/registry/new-york/blocks/dashboard-01/components/data-table.tsx.
Where is DragHandle() defined?
DragHandle() is defined in deprecated/www/registry/new-york/blocks/dashboard-01/components/data-table.tsx at line 121.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free