Herdr UI
Herdr의 TUI가 뛰어나며, 창을 통해 추가되는 기능
데이터‑중심 제품용 필터링 프레임워크: 한 줄에 필터를 표시·검색·취소, shadcn CLI로 설치
A filtering framework for data-heavy products: filters people can see, find and undo, in one row above your data. Install it with the shadcn CLI.
개발 도구TypeScript · CSSGitHub @cinblu온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
A filtering framework for data-heavy products. Filters people can see, find and undo, in one row above your data. Distributed as a shadcn/ui registry item, so you install the source and make it yours.README 전문 보기 ↗A filtering framework for data-heavy products. Filters people can see, find and undo, in one row above your data. Distributed as a shadcn/ui registry item, so you install the source and make it yours.
Plus the details: humanised date presets ("1 week ago") in one click, selected options that never jump under the cursor, an Apply step for heavy tables (or instant mode for light ones), filters in the URL, full keyboard support, and every size and colour as a CSS variable.
Live site and demo: filter-components-nu.vercel.app
The thinking behind it is in the article Crafting a modular filtering framework for data-heavy applications.
Requirements: React 19, Tailwind CSS v4, and shadcn/ui set up with a Radix-based style (for example npx shadcn@latest init --base radix). Base UI styles aren't supported yet.
npx shadcn@latest add https://filter-components-nu.vercel.app/r/filter-bar.json
This adds components/filter-bar/, the shadcn components it uses (button, calendar, command, dialog, input, popover, separator, tooltip), date-fns, lucide-react, and the --fb-* CSS variables. Chip tooltips need shadcn's <TooltipProvider> above the bar, usually in app/layout.tsx.
For client-side filtering with TanStack Table v8, add the adapter:
npx shadcn@latest add https://filter-components-nu.vercel.app/r/filter-bar-tanstack.json
"use client";
import { useState } from "react";
import { FilterBar } from "@/components/filter-bar/filter-bar";
import type { FilterDefinition, SortState } from "@/components/filter-bar/types";
import { useFilterUrlState } from "@/components/filter-bar/url-state";
import { useFilters } from "@/components/filter-bar/use-filters";
const definitions: FilterDefinition[] = [
{ id: "createdAt", label: "Created Date", type: "dateRange", tier: "quick" },
{
id: "status",
label: "Status",
type: "multiSelect",
tier: "quick",
options: [
{ value: "open", label: "Open" },
{ value: "closed", label: "Closed" },
],
},
{ id: "batchId", label: "Batch ID", type: "text", tier: "more" },
];
export function Documents() {
const url = useFilterUrlState(definitions); // optional: keep filters in the URL
const filters = useFilters({ definitions, ...url });
const [sort, setSort] = useState<SortState>();
// filters.applied is what to filter by: send it to your API, or use the TanStack adapter.
return <FilterBar filters={filters} sort={sort} onSortChange={setSort} />;
}
With TanStack Table, give each column the same id as its filter and the matching filter function:
import {
dateRangeFn, multiSelectFn, textFn, toColumnFilters,
} from "@/components/filter-bar-tanstack/adapter";
const columns = [
{ id: "status", accessorKey: "status", filterFn: multiSelectFn },
{ id: "createdAt", accessorKey: "createdAt", filterFn: dateRangeFn },
{ id: "batchId", accessorKey: "batchId", filterFn: textFn },
];
const columnFilters = useMemo(() => toColumnFilters(filters.applied, definitions), [filters.applied]);
const table = useReactTable({ data, columns, state: { columnFilters }, /* … */ });
The full API (filter definitions, useFilters, URL sync, the adapter, keyboard behaviour) is in the docs.
Everything is a CSS variable, installed with the component. The customiser writes overrides for you.
:root {
--fb-density: 1; /* 0.875 compact · 1 · 1.125 comfortable */
--fb-chip-radius: var(--radius-sm);
--fb-chip-border-style: dashed; /* unset chips */
--fb-accent: var(--primary); /* values, Apply, checkmarks, focus borders */
}
This repo is the registry and its docs site (Next.js App Router, TypeScript, Tailwind v4, shadcn/ui).
pnpm install
pnpm dev # docs site and demos on http://localhost:5000
pnpm test # unit and component tests (Vitest + Testing Library)
pnpm test:e2e # end-to-end and accessibility tests (Playwright + axe)
pnpm typecheck
pnpm lint
pnpm registry:build # builds the registry JSON into public/r
The component source is in registry/filter-bar/ and registry/filter-bar-tanstack/. Behaviour is specified in SPEC.md; every rule marked [T] there has a test.
Designed by Nahid Noushathu, from the pattern described in Crafting a modular filtering framework for data-heavy applications.