DocsExamples

Examples

Column DnD Ordering Example

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

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

Try it

  1. Drag the City header onto First Name. City moves to the front.
  2. Open Show/Hide columns and click Reset order. The columns go back to their first order.
Storybook