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-slider-filter

DataTable Slider Filter

niko-table/data-table-slider-filter
FreeComponent

Slider-based filter for numeric range filtering.

Install it

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

Source

src/components/niko-table/components/data-table-slider-filter.tsxniko-table.com/r/data-table-slider-filter.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 * as React from "react"
15import { useDataTable } from "../core/data-table-context"
16import {
17 TableSliderFilter,
18 type TableSliderFilterProps,
19} from "../filters/table-slider-filter"
20import { useDerivedColumnTitle } from "../hooks/use-derived-column-title"
21import { FILTER_VARIANTS } from "../lib/constants"
22
23type DataTableSliderFilterProps<TData> = Omit<
24 TableSliderFilterProps<TData>,
25 "column" | "title"
26> & {
27 /**
28 * The accessor key of the column to filter (matches column definition)
29 */
30 accessorKey: keyof TData & string
31 /**
32 * Optional title override (if not provided, will use column.meta.label)
33 */
34 title?: string
35}
36
37/**
38 * A slider filter component that automatically connects to the DataTable context
39 * and derives the title from column metadata.
40 *
41 * @example - Auto-detect everything from column metadata and data
42 * const columns: DataTableColumnDef[] = [{ accessorKey: "price",..., meta: { label: "Price", unit: "$", range: [0, 1000] } },...]
43 * <DataTableSliderFilter accessorKey="price" />
44 *
45 * @example - Custom range shorthand with unit
46 * <DataTableSliderFilter
47 * accessorKey="price"
48 * range={[0, 1000]}
49 * unit="$"
50 * />
51 *
52 * @example - Individual min/max control
53 * <DataTableSliderFilter
54 * accessorKey="rating"
55 * min={1}
56 * max={5}
57 * step={0.5}
58 * />
59 *
60 * @example - Full manual control with custom title
61 * <DataTableSliderFilter
62 * accessorKey="distance"
63 * title="Distance Range"
64 * range={[0, 100]}
65 * step={5}
66 * unit="km"
67 * />
68 */
69
70export function DataTableSliderFilter<TData>({
71 accessorKey,
72 title,
73 ...props
74}: DataTableSliderFilterProps<TData>) {
75 const { table } = useDataTable<TData>()
76 const column = table.getColumn(accessorKey as string)
77
78 const derivedTitle = useDerivedColumnTitle(column, String(accessorKey), title)
79
80 // Auto-set variant in column meta if not already set
81 // This allows the auto-filterFn to be applied based on variant
82 React.useMemo(() => {
83 if (!column) return
84 const meta = (column.columnDef.meta ||= {})
85// … truncated

What it pulls in

npm packages

  • lucide-react

Other registry items

  • https://niko-table.com/r/data-table.json
  • button
  • input
  • label
  • popover
  • separator
  • slider

Files it writes

  • src/components/niko-table/components/data-table-slider-filter.tsx
  • src/components/niko-table/filters/table-slider-filter.tsx

Facts

Registry
niko-table
Type
registry:component
Access
Free
Files written
2
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

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