One facet of a list: dashed until used, then solid with a count.
Every shadcn style · one file
v2.0 · Updated Oct 13pnpm dlx shadcn@latest add https://notchset.dev/r/filter-button.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/filter-button.jsonFree, no account or key. One command for every shadcn style. With the @notchset registry added, @notchset/<name> works too.
Works with React 18.3 or 19 on Tailwind CSS v4, in any shadcn project. What's tested
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { Filter, UserRound } from "lucide-react";
import { FilterButton } from "@/components/ui/notchset/filter-button";
const STAGES = { Discovery: "#8f9bb3", Evaluation: "#38a6d6", Proposal: "#9b87f5", "Security review": "#e3a33b", Procurement: "#ec7d55" };
const OWNERS = ["Ana Ruiz", "Kevin Ito", "Priya Shah", "Marcus Bell"];
export default function FilterButtonDemo() {
const [stages, setStages] = React.useState<string[]>(["Proposal"]);
const [owners, setOwners] = React.useState<string[]>([]);
return (
<div className="flex flex-wrap gap-2">
<FilterButton
label="Stage"
icon={<Filter />}
value={stages}
onValueChange={setStages}
options={Object.entries(STAGES).map(([k, c]) => ({ value: k, label: k, icon: <span className="size-2 rounded-full" style={{ background: c }} /> }))}
/>
<FilterButton label="Owner" icon={<UserRound />} value={owners} onValueChange={setOwners} options={OWNERS.map((o) => ({ value: o, label: o }))} />
</div>
);
}components/ui/notchset/filter-button.tsx
label–
stringRequired.
icon–
React.ReactNodeoptions–
FilterOption[]Required.
value–
string[]Required.
onValueChange–
(value: string[]) => voidRequired.
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v2.0.0 · 2026-10-13
Released with the Notchset system.
The same file, at work in a finished app. Open it live and find it on its pages.