BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/niko-table/data-table-row-dnd

DataTable Row DnD

niko-table/data-table-row-dnd
FreeComponent

Drag-and-drop row reordering with composable primitives. Includes DnD provider, draggable row, drag handle, and row DnD table body. Does not ship column DnD.

Install it

npx shadcn@latest add https://niko-table.com/r/data-table-row-dnd.json

Source

src/components/niko-table/components/data-table-row-dnd.tsxniko-table.com/r/data-table-row-dnd.json
1"use client"
2
3/**
4 * niko-table — created by Semir N. (Semkoo, https://github.com/Semkoo) with AI assistance.
5 *
6 * Before reporting anything: please check the changelog first.
7 * - In-repo: ./CHANGELOG.md
8 * - Docs site: https://niko-table.com/changelog
9 *
10 * Found a bug or have a fix? Open an issue or PR on GitHub so other
11 * users (and future LLMs reading this code) benefit:
12 * https://github.com/Semkoo/niko-table-registry
13 */
14import { useDataTable } from "../core/data-table-context"
15import {
16 TableRowDndProvider,
17 type TableRowDndProviderProps,
18 TableDraggableRow,
19 type TableDraggableRowProps,
20 TableRowDragHandle,
21 type TableRowDragHandleProps,
22} from "../filters/table-row-dnd"
23
24// ============================================================================
25// DataTableRowDndProvider
26// ============================================================================
27
28export type DataTableRowDndProviderProps<TData> = Omit<
29 TableRowDndProviderProps<TData>,
30 "table"
31>
32
33/**
34 * Context-aware row DnD provider that automatically connects to the DataTable context.
35 *
36 * @example
37 * <DataTableRoot data={data} columns={columns} getRowId={(row) => row.id}>
38 * <DataTableRowDndProvider data={data} onReorder={setData}>
39 * <DataTable>
40 * <DataTableHeader />
41 * <DataTableDndBody />
42 * </DataTable>
43 * </DataTableRowDndProvider>
44 * </DataTableRoot>
45 */
46export function DataTableRowDndProvider<TData>(
47 props: DataTableRowDndProviderProps<TData>,
48) {
49 const { table } = useDataTable<TData>()
50 return <TableRowDndProvider<TData> table={table} {...props} />
51}
52
53DataTableRowDndProvider.displayName = "DataTableRowDndProvider"
54
55// ============================================================================
56// DataTableDraggableRow
57// ============================================================================
58
59export type DataTableDraggableRowProps<TData> = TableDraggableRowProps<TData>
60
61/**
62 * Context-aware draggable row component.
63 *
64 * @example
65 * <DataTableDraggableRow row={row}>
66 * {row.getVisibleCells().map(cell => (
67 * <TableCell key={cell.id}>
68 * {flexRender(cell.column.columnDef.cell, cell.getContext())}
69 * </TableCell>
70 * ))}
71 * </DataTableDraggableRow>
72 */
73export function DataTableDraggableRow<TData>(
74 props: DataTableDraggableRowProps<TData>,
75) {
76 return <TableDraggableRow<TData> {...props} />
77}
78
79DataTableDraggableRow.displayName = "DataTableDraggableRow"
80
81// … truncated

What it pulls in

npm packages

  • @dnd-kit/core
  • @dnd-kit/modifiers
  • @dnd-kit/sortable
  • @dnd-kit/utilities
  • lucide-react

Other registry items

  • https://niko-table.com/r/data-table.json
  • button

Files it writes

  • src/components/niko-table/filters/table-row-dnd.tsx
  • src/components/niko-table/components/data-table-row-dnd.tsx
  • src/components/niko-table/core/data-table-row-dnd-structure.tsx

Facts

Registry
niko-table
Type
registry:component
Access
Free
Files written
3
Licence
the repository states none
In the index
at or before 2026-08-13
Last confirmed
yesterday

Go to the source

niko-table.com Semkoo/niko-table-registry on GitHub Raw registry item This item as JSON

More from niko-table

All 31 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
DataTable Asidedata-table-asideniko-tableComponentsFree1 dep
DataTable Clear Filterdata-table-clear-filterniko-tableComponentsFree1 dep · 2 files
DataTable Column Auto-fitdata-table-column-auto-fitniko-tableComponentsFreeno deps · 2 files
DataTable Column Date Filterdata-table-column-date-filterniko-tableComponentsFree2 deps · 2 files
DataTable Column DnDdata-table-column-dndniko-tableComponentsFree4 deps · 3 files
DataTable Column Faceted Filterdata-table-column-faceted-filterniko-tableComponentsFree1 dep · 3 files
DataTable Column Hidedata-table-column-hideniko-tableComponentsFree1 dep · 2 files
DataTable Column Pindata-table-column-pinniko-tableComponentsFree1 dep · 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

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.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 KitGrade

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 KitGrade

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 KitGrade

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