BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/virtuoso/data-table-reorder-grip

Data Table Reorder Grip

virtuoso/data-table-reorder-grip
FreeComponent

Slot-mounted drag grip for column reordering.

Install it

npx shadcn@latest add https://virtuoso.dev/r/data-table-reorder-grip.json

Source

registry/new-york/data-table/column-reorder/draggable-group-header.tsxvirtuoso.dev/r/data-table-reorder-grip.json
1'use client'
2
3import { useCellValue, usePublisher } from '@virtuoso.dev/data-table'
4import {
5 beginColumnDrag$,
6 columnDragState$,
7 endColumnDrag$,
8 reorderColumnGroup$,
9 setColumnDropTarget$,
10} from '@virtuoso.dev/data-table/column-reorder'
11
12import { cn } from '@/lib/utils'
13
14interface DraggableGroupHeaderProps {
15 label: string
16 columnKeys: string[]
17 stickyGroup?: 'left' | 'right'
18}
19
20function DraggableGroupHeader({ label, columnKeys, stickyGroup }: DraggableGroupHeaderProps) {
21 const dragState = useCellValue(columnDragState$)
22 const beginColumnDrag = usePublisher(beginColumnDrag$)
23 const endColumnDrag = usePublisher(endColumnDrag$)
24 const setColumnDropTarget = usePublisher(setColumnDropTarget$)
25 const reorderColumnGroup = usePublisher(reorderColumnGroup$)
26
27 const isGroupDrag = (dragState.sourceKeys?.length ?? 0) > 1
28 const isSelfDrag = isGroupDrag && dragState.sourceKeys?.[0] === columnKeys[0]
29 const groupAnchorKey = dragState.dropTarget?.key
30 const dropPosition =
31 groupAnchorKey && (groupAnchorKey === columnKeys[0] || groupAnchorKey === columnKeys.at(-1)) ? dragState.dropTarget!.position : null
32
33 return (
34 <div
35 className={cn(
36 'relative flex items-center border-b border-border bg-muted px-2 py-1 text-xs font-semibold whitespace-nowrap',
37 stickyGroup && 'bg-muted/80'
38 )}
39 onDragOver={(ev) => {
40 if (!isGroupDrag) {
41 return
42 }
43 if (isSelfDrag) {
44 return
45 }
46 if (dragState.sourceSticky !== stickyGroup) {
47 return
48 }
49 ev.preventDefault()
50 ev.dataTransfer.dropEffect = 'move'
51 const rect = ev.currentTarget.getBoundingClientRect()
52 const position = ev.clientX < rect.left + rect.width / 2 ? 'before' : 'after'
53 const anchorKey = position === 'before' ? columnKeys[0]! : columnKeys.at(-1)!
54 if (dragState.dropTarget?.key === anchorKey && dragState.dropTarget.position === position) {
55 return
56 }
57 setColumnDropTarget({ key: anchorKey, position })
58 }}
59 onDragLeave={(ev) => {
60 const next = ev.relatedTarget as Node | null
61 if (next && ev.currentTarget.contains(next)) {
62 return
63 }
64 setColumnDropTarget(null)
65 }}
66 onDrop={(ev) => {
67 ev.preventDefault()
68 if (!isGroupDrag || isSelfDrag || !dragState.sourceKeys) {
69 setColumnDropTarget(null)
70 return
71 }
72// … truncated

What it pulls in

npm packages

  • @virtuoso.dev/data-table
  • lucide-react

Other registry items

  • petyosi/react-virtuoso/data-table

Files it writes

  • registry/new-york/data-table/column-reorder/index.ts
  • registry/new-york/data-table/column-reorder/draggable-group-header.tsx
  • registry/new-york/data-table/column-reorder/reorder-drop-zone.tsx
  • registry/new-york/data-table/column-reorder/reorder-grip.tsx

Facts

Registry
virtuoso
Type
registry:component
Access
Free
Files written
4
Licence
the repository states none
In the index
at or before 2026-08-10
Last confirmed
today

Go to the source

virtuoso.dev petyosi/react-virtuoso on GitHub Raw registry item This item as JSON

More from virtuoso

All 6 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Data Tabledata-tablevirtuosoComponentsFree1 dep
Data Table Draggable Group Headerdata-table-draggable-group-headervirtuosoComponentsFree1 dep
Data Table Reorder Drop Zonedata-table-reorder-drop-zonevirtuosoComponentsFree2 deps · 4 files
Data Table Resize Handledata-table-resize-handlevirtuosoComponentsFree1 dep · 2 files
Data Table Sort Header Buttondata-table-sort-header-buttonvirtuosoComponentsFree2 deps · 2 files

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex