DocsExamples

Examples

Row DnD Ordering Example

An example of Shadcn Table which shows how to enable rows to be re-arranged via drag and drop.

Shadcn Table has built-in support for row drag and drop re-ordering. Learn more about row ordering in the Row Ordering Feature Guide.

Try it

  1. Drag Dylan Murray by his Move handle below Ervin Reinger. He moves there.
  2. Click First Name. The menu has no sort: sorting is off so your order stays.
Storybook