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-sort-menu

DataTable Sort Menu

niko-table/data-table-sort-menu
FreeComponent

Sort management menu with multi-column sorting and drag-and-drop reordering.

Install it

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

Source

src/components/niko-table/components/data-table-sort-menu.tsxniko-table.com/r/data-table-sort-menu.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 TableSortMenu,
17 type TableSortMenuProps,
18} from "../filters/table-sort-menu"
19
20type DataTableSortMenuProps<TData> = Omit<TableSortMenuProps<TData>, "table">
21
22/**
23 * A sort menu component that automatically connects to the DataTable context
24 * and allows users to manage multiple sorting criteria.
25 *
26 * @example - Basic usage with default settings
27 * <DataTableSortMenu />
28 *
29 * @example - Custom alignment and positioning
30 * <DataTableSortMenu align="end" side="bottom" />
31 *
32 * @example - With debounce for performance
33 * <DataTableSortMenu debounceMs={300} />
34 *
35 * @example - With throttle for frequent updates
36 * <DataTableSortMenu throttleMs={100} />
37 *
38 * @example - Custom styling
39 * <DataTableSortMenu className="w-[400px]" />
40 */
41export function DataTableSortMenu<TData>(props: DataTableSortMenuProps<TData>) {
42 const { table } = useDataTable<TData>()
43 return <TableSortMenu<TData> table={table} {...props} />
44}
45
46/**
47 * @required displayName is required for auto feature detection
48 * @see "feature-detection.ts"
49 */
50
51DataTableSortMenu.displayName = "DataTableSortMenu"

What it pulls in

npm packages

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

Other registry items

  • https://niko-table.com/r/data-table.json
  • button
  • badge
  • command
  • popover
  • tooltip
  • select
  • https://diceui.com/r/sortable.json

Files it writes

  • src/components/niko-table/components/data-table-sort-menu.tsx
  • src/components/niko-table/filters/table-sort-menu.tsx

Facts

Registry
niko-table
Type
registry:component
Access
Free
Files written
2
Licence
the repository states none
First indexed
2026-08-02
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
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex