The shadcn Checkbox, plus a tri-state tree for parent and child options.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { CheckboxTree } from "@/components/ui/notchset/checkbox";
const rules = [
{ id: "cost", label: "Cost over budget" },
{ id: "latency", label: "P95 latency over 400ms" },
{ id: "failures", label: "Failure rate over 2%" },
];
export function AlertRules() {
const [on, setOn] = React.useState<string[]>(["cost"]);
return <CheckboxTree label="All alerts" items={rules} value={on} onValueChange={setOn} />;
}Checkbox–
as the primitive + indeterminateshadcn's API; indeterminate shows the dash.
CheckboxTree–
{ label, items, value, onValueChange, meta?, defaultOpen? }The parent, collapse key and child rows.
Checkboxdata-slot="checkbox"
The box.
CheckboxTreedata-slot="checkbox-tree"
The group.
components/ui/notchset/checkbox.tsx
pnpm dlx shadcn@latest add https://notchset.dev/r/checkbox.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/radix-nova/checkbox.jsonFree, no account or key. Use the command for your project's primitives: a radix-*, new-york or default style in components.json is Radix, a base-* style is Base UI. With the @notchset registry added, @notchset/<name> picks for you.
pnpm add @base-ui/react@^1The 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.
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v1.0.0 · 2026-10-02
First release