A header rail keeping agent runs, approvals and timers visible
pnpm dlx shadcn@latest add @notchset-pro/notchA rail in the header that keeps every agent run, approval and timer in view.
Every shadcn style · one file
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { Bell, CalendarDays, Home, Inbox, Search } from "@/lib/notchset/icons";
import { cn } from "@/lib/utils";
import { Notch, type NotchItem } from "@/components/ui/notchset/blocks/notch";
import { Button } from "@/components/ui/notchset/button";
import { CompanyMark } from "@/components/ui/notchset/company-mark";
import { MEDIA, useMedia } from "@/lib/notchset/media";
/*
* The Assistant app's home, with the Notch set into its header (a pill over the tab bar on a phone). Nothing plays
* by itself: each card starts its item on a press. The build fix runs its steps and waits at the push; the
* follow-up asks before it sends, then keeps Undo for twelve seconds; the focus block counts down. The clock ticks
* only while something works or settles, and stops when the last one folds away. Nothing is sent anywhere.
*/
type Kind = NotchItem["kind"];
type Row = NotchItem & { t: number; steps: { title: string; at?: number | undefined }[]; step: number; undoLeft: number };
const STEP_S = 3;
const UNDO_S = 12;
const FOLD_S = 4;
const VERCEL = <CompanyMark name="Vercel" color="#000000" glyph="m12 1.608 12 20.784H0Z" size="xs" />;
const RAYCAST = <CompanyMark name="Raycast" color="#ff6363" size="xs" />;
const RUN: Omit<Row, "id"> = {
kind: "run",
name: "Fix the failing build",
phase: "running",
present: "Reading the CI log",
past: "Fixed the failing build",
mark: VERCEL,
clock: 0,
steps: [{ title: "Reading the CI log" }, { title: "Patching the date test" }, { title: "Running the tests" }, { title: "Pushing to main" }],
step: 0,
undoLeft: 0,
t: 0,
};
const SEND: Omit<Row, "id"> = {
kind: "send",
name: "Follow up with Raycast",
phase: "waiting",
present: "Sending 3 emails",
past: "Sent 3 emails",
outcome: "to Raycast",
mark: RAYCAST,
clock: 0,
steps: [{ title: "Drafted 3 follow-ups", at: 0 }, { title: "Sending" }],
step: 1,
gate: { title: "Send 3 emails to Raycast?", detail: "To Ana Ruiz, Theo Park and Mia Chen, from your Gmail", allow: "Send" },
undoLeft: 0,
t: 0,
};
const TIMER: Omit<Row, "id"> = { kind: "timer", name: "Focus block", phase: "running", present: "Focus block", past: "Focus block ended", clock: 25 * 60, steps: [], step: 0, undoLeft: 0, t: 0 };
const BASE: Record<Kind, Omit<Row, "id">> = { run: RUN, send: SEND, timer: TIMER };
/* one second of the world: clocks count, steps advance, undo windows close, settled rows fold away */
function tick(a: Row): Row | null {
const t = a.t + 1;
if (a.kind === "timer") {
if (a.phase !== "running") return ended(a) ? (t >= FOLD_S ? null : { ...a, t }) : a;
const clock = Math.max(0, a.clock - 1);
return clock === 0 ? { ...a, clock, phase: "done", outcome: "25 min", t: 0 } : { ...a, clock, t };
}
if (a.phase === "running") {
const clock = a.clock + 1;
if (t < STEP_S) return { ...a, clock, t };
const steps = a.steps.map((s, i) => (i === a.step ? { ...s, at: clock } : s));
const step = a.step + 1;
if (a.kind === "run" && step === 3 && !a.gate)
return { ...a, clock, steps, step, t: 0, phase: "waiting", present: "Waiting to push", gate: { title: "Push 1 commit to main?", detail: "Starts a production deploy on Vercel", allow: "Push" } };
if (step >= a.steps.length) return { ...a, clock, steps, step, t: 0, phase: "done", outcome: a.kind === "run" ? "1 commit pushed" : a.outcome, undoLeft: UNDO_S };
return { ...a, clock, steps, step, t: 0, present: a.steps[step]!.title };
}
if (a.phase === "done" && a.undoLeft > 0) return { ...a, undoLeft: a.undoLeft - 1, t: 0 };
if (ended(a)) return t >= FOLD_S ? null : { ...a, t };
return a;
}
const ended = (a: Row) => a.phase === "done" || a.phase === "stopped" || a.phase === "undone";
type Act = { type: "add"; row: Row } | { type: "tick" } | { type: "set"; id: string; f: (a: Row) => Row };
let born = 0;
const make = (kind: Kind): Row => ({ ...BASE[kind], id: `${kind}-${++born}` });
function reduce(list: Row[], act: Act): Row[] {
if (act.type === "add") return list.some((a) => a.kind === act.row.kind) ? list : [...list, act.row];
if (act.type === "tick") return list.map(tick).filter((a): a is Row => a !== null);
return list.map((a) => (a.id === act.id ? act.f(a) : a));
}
/* where the page opens: quiet, or with the queue stacked and one gate waiting */
const OPEN: Record<string, Kind[]> = { rest: [], stacked: ["timer", "run", "send"] };
export default function NotchDemo() {
const view = "rest";
return <Stage key={view} start={OPEN[view] ?? []} />;
}
function Stage({ start }: { start: Kind[] }) {
const [list, dispatch] = React.useReducer(reduce, start, (s) => s.map(make));
const phone = useMedia(MEDIA.phone);
const [focusGate, setFocusGate] = React.useState<string | null>(null);
const live = list.some((a) => a.phase === "running" || ended(a));
React.useEffect(() => {
if (!live) return;
const id = window.setInterval(() => dispatch({ type: "tick" }), 1000);
return () => window.clearInterval(id);
}, [live]);
const set = (id: string, f: (a: Row) => Row) => dispatch({ type: "set", id, f });
const has = (k: Kind) => list.some((a) => a.kind === k);
const add = (kind: Kind) => {
if (has(kind)) return;
const row = make(kind);
dispatch({ type: "add", row });
/* the gate this press raises takes focus: the hand is already there */
if (kind === "send") setFocusGate(row.id);
};
const cards = [
{ key: "run" as const, mark: <CompanyMark name="Vercel" color="#000000" glyph="m12 1.608 12 20.784H0Z" size="md" />, title: "Fix the failing build", line: "web · main · 2 checks failing", cta: "Start run", on: () => add("run") },
{ key: "send" as const, mark: <CompanyMark name="Raycast" color="#ff6363" size="md" />, title: "Follow up with Raycast", line: "3 drafts ready · Ana, Theo and Mia", cta: "Send 3 emails", on: () => add("send") },
{
key: "timer" as const,
mark: (
<span className="flex size-7 items-center justify-center rounded-[var(--ns-radius-sm)] bg-[var(--ns-well)] text-[var(--ns-ink-2)]">
<CalendarDays aria-hidden className="size-4" strokeWidth={1.75} />
</span>
),
title: "Focus block",
line: "Write the Q4 launch notes",
cta: "Start 25:00",
on: () => add("timer"),
},
];
const notch = (
<Notch
items={list}
place={phone ? "pill" : "header"}
pillBottom={74}
focusGate={focusGate}
onAllow={(id) => set(id, (a) => (a.phase === "waiting" ? { ...a, phase: "running", present: a.steps[a.step]?.title ?? a.present, t: 0 } : a))}
onDeny={(id) => set(id, (a) => (a.phase === "waiting" ? { ...a, phase: "stopped", past: a.kind === "send" ? "Didn't send the emails" : "Stopped before the push", outcome: undefined, t: 0 } : a))}
onUndo={(id) => set(id, (a) => (a.phase === "done" ? { ...a, phase: "undone", past: a.kind === "send" ? "Unsent 3 emails" : "Reverted the push", outcome: undefined, t: 0, undoLeft: 0 } : a))}
onPause={(id) => set(id, (a) => (a.phase === "running" ? { ...a, phase: "paused" } : a.phase === "paused" ? { ...a, phase: "running" } : a))}
onStop={(id) => set(id, (a) => ({ ...a, phase: "stopped", past: a.kind === "timer" ? "Focus block stopped" : "Stopped the run", outcome: undefined, t: 0 }))}
/>
);
return (
<div
role="group"
aria-label="The Assistant app"
className={cn("relative isolate mx-auto flex w-full flex-col overflow-hidden rounded-[var(--ns-radius-xl)] bg-[var(--ns-canvas)] text-[var(--ns-ink)] shadow-[var(--ns-depth-card)]", phone ? "h-[640px] max-w-[390px]" : "h-[520px] max-w-[1040px]")}
>
<header className="relative z-20 flex h-14 shrink-0 items-center gap-3 border-b border-[var(--ns-line)] bg-[var(--ns-panel)] px-4">
<span className="flex min-w-0 items-center gap-2 text-[length:var(--ns-text-body)] font-[number:var(--ns-weight-medium)]">
<span aria-hidden className="size-5 rounded-[var(--ns-radius-sm)] bg-[var(--ns-signal)]" />
Assistant
</span>
<div className="flex min-w-0 flex-1 justify-center">{phone ? null : notch}</div>
{!phone && (
<span className="flex items-center gap-3 text-[var(--ns-ink-3)]">
<Search aria-hidden className="size-4" strokeWidth={1.75} />
<Bell aria-hidden className="size-4" strokeWidth={1.75} />
</span>
)}
<span aria-hidden className="flex size-7 items-center justify-center rounded-full bg-[var(--ns-well)] text-[length:var(--ns-text-meta)] font-[number:var(--ns-weight-medium)] text-[var(--ns-ink-2)]">
JL
</span>
</header>
<div className="flex min-h-0 flex-1">
{!phone && (
<nav aria-label="Sections" className="flex w-44 shrink-0 flex-col gap-0.5 border-e border-[var(--ns-line)] bg-[var(--ns-panel)] p-3 text-[length:var(--ns-text-small)]">
{["Home", "Runs", "Inbox", "Calendar"].map((n, i) => (
<span key={n} className={cn("rounded-[var(--ns-radius-control-sm)] px-2.5 py-1.5", i === 0 ? "bg-[var(--ns-selected)] text-[var(--ns-ink)]" : "text-[var(--ns-ink-2)]")}>
{n}
</span>
))}
</nav>
)}
<main className={cn("min-w-0 flex-1 overflow-hidden", phone ? "px-4 pt-8" : "px-10 pt-14")}>
<h2 className="m-0 text-[length:var(--ns-text-title)] font-[number:var(--ns-weight-medium)] tracking-tight">Good morning</h2>
<p className="m-0 mt-1 text-[length:var(--ns-text-small)] text-[var(--ns-ink-3)]">Three things are ready to start. The Notch keeps them in view while you work.</p>
<ul className={cn("m-0 mt-6 grid list-none gap-3 p-0", phone ? "grid-cols-1" : "grid-cols-3")}>
{cards.map((c) => (
<li key={c.key} className="flex flex-col gap-3 rounded-[var(--ns-radius-xl)] bg-[var(--ns-depth-surface)] p-4 shadow-[var(--ns-depth-card)]">
<div className="flex items-center gap-3">
{c.mark}
<div className="min-w-0">
<div className="truncate text-[length:var(--ns-text-body)] font-[number:var(--ns-weight-medium)]">{c.title}</div>
<div className="truncate text-[length:var(--ns-text-small)] text-[var(--ns-ink-3)]">{c.line}</div>
</div>
</div>
<Button size="sm" intent={c.key === "send" ? "primary" : "secondary"} onClick={c.on} disabled={has(c.key)} className="self-start">
{c.cta}
</Button>
</li>
))}
</ul>
</main>
</div>
{phone && (
<>
{notch}
<nav aria-label="Tabs" className="relative z-10 flex h-16 shrink-0 items-start justify-around border-t border-[var(--ns-line)] bg-[var(--ns-panel)] pt-2">
{[
{ n: "Home", I: Home },
{ n: "Inbox", I: Inbox },
{ n: "Calendar", I: CalendarDays },
{ n: "Search", I: Search },
].map(({ n, I }, i) => (
<span key={n} className={cn("flex w-16 flex-col items-center gap-0.5 text-[length:var(--ns-text-meta)]", i === 0 ? "text-[var(--ns-ink)]" : "text-[var(--ns-ink-3)]")}>
<I aria-hidden className="size-5" strokeWidth={1.75} />
{n}
</span>
))}
</nav>
</>
)}
</div>
);
}"use client";
import * as React from "react";
import { Bell, CalendarDays, Home, Inbox, Search } from "@/lib/notchset/icons";
import { cn } from "@/lib/utils";
import { Notch, type NotchItem } from "@/components/ui/notchset/blocks/notch";
import { Button } from "@/components/ui/notchset/button";
import { CompanyMark } from "@/components/ui/notchset/company-mark";
import { MEDIA, useMedia } from "@/lib/notchset/media";
/*
* The Assistant app's home, with the Notch set into its header (a pill over the tab bar on a phone). Nothing plays
* by itself: each card starts its item on a press. The build fix runs its steps and waits at the push; the
* follow-up asks before it sends, then keeps Undo for twelve seconds; the focus block counts down. The clock ticks
* only while something works or settles, and stops when the last one folds away. Nothing is sent anywhere.
*/
type Kind = NotchItem["kind"];
type Row = NotchItem & { t: number; steps: { title: string; at?: number | undefined }[]; step: number; undoLeft: number };
const STEP_S = 3;
const UNDO_S = 12;
const FOLD_S = 4;
const VERCEL = <CompanyMark name="Vercel" color="#000000" glyph="m12 1.608 12 20.784H0Z" size="xs" />;
const RAYCAST = <CompanyMark name="Raycast" color="#ff6363" size="xs" />;
const RUN: Omit<Row, "id"> = {
kind: "run",
name: "Fix the failing build",
phase: "running",
present: "Reading the CI log",
past: "Fixed the failing build",
mark: VERCEL,
clock: 0,
steps: [{ title: "Reading the CI log" }, { title: "Patching the date test" }, { title: "Running the tests" }, { title: "Pushing to main" }],
step: 0,
undoLeft: 0,
t: 0,
};
const SEND: Omit<Row, "id"> = {
kind: "send",
name: "Follow up with Raycast",
phase: "waiting",
present: "Sending 3 emails",
past: "Sent 3 emails",
outcome: "to Raycast",
mark: RAYCAST,
clock: 0,
steps: [{ title: "Drafted 3 follow-ups", at: 0 }, { title: "Sending" }],
step: 1,
gate: { title: "Send 3 emails to Raycast?", detail: "To Ana Ruiz, Theo Park and Mia Chen, from your Gmail", allow: "Send" },
undoLeft: 0,
t: 0,
};
const TIMER: Omit<Row, "id"> = { kind: "timer", name: "Focus block", phase: "running", present: "Focus block", past: "Focus block ended", clock: 25 * 60, steps: [], step: 0, undoLeft: 0, t: 0 };
const BASE: Record<Kind, Omit<Row, "id">> = { run: RUN, send: SEND, timer: TIMER };
/* one second of the world: clocks count, steps advance, undo windows close, settled rows fold away */
function tick(a: Row): Row | null {
const t = a.t + 1;
if (a.kind === "timer") {
if (a.phase !== "running") return ended(a) ? (t >= FOLD_S ? null : { ...a, t }) : a;
const clock = Math.max(0, a.clock - 1);
return clock === 0 ? { ...a, clock, phase: "done", outcome: "25 min", t: 0 } : { ...a, clock, t };
}
if (a.phase === "running") {
const clock = a.clock + 1;
if (t < STEP_S) return { ...a, clock, t };
const steps = a.steps.map((s, i) => (i === a.step ? { ...s, at: clock } : s));
const step = a.step + 1;
if (a.kind === "run" && step === 3 && !a.gate)
return { ...a, clock, steps, step, t: 0, phase: "waiting", present: "Waiting to push", gate: { title: "Push 1 commit to main?", detail: "Starts a production deploy on Vercel", allow: "Push" } };
if (step >= a.steps.length) return { ...a, clock, steps, step, t: 0, phase: "done", outcome: a.kind === "run" ? "1 commit pushed" : a.outcome, undoLeft: UNDO_S };
return { ...a, clock, steps, step, t: 0, present: a.steps[step]!.title };
}
if (a.phase === "done" && a.undoLeft > 0) return { ...a, undoLeft: a.undoLeft - 1, t: 0 };
if (ended(a)) return t >= FOLD_S ? null : { ...a, t };
return a;
}
const ended = (a: Row) => a.phase === "done" || a.phase === "stopped" || a.phase === "undone";
type Act = { type: "add"; row: Row } | { type: "tick" } | { type: "set"; id: string; f: (a: Row) => Row };
let born = 0;
const make = (kind: Kind): Row => ({ ...BASE[kind], id: `${kind}-${++born}` });
function reduce(list: Row[], act: Act): Row[] {
if (act.type === "add") return list.some((a) => a.kind === act.row.kind) ? list : [...list, act.row];
if (act.type === "tick") return list.map(tick).filter((a): a is Row => a !== null);
return list.map((a) => (a.id === act.id ? act.f(a) : a));
}
/* where the page opens: quiet, or with the queue stacked and one gate waiting */
const OPEN: Record<string, Kind[]> = { rest: [], stacked: ["timer", "run", "send"] };
export default function NotchDemo() {
const view = "rest";
return <Stage key={view} start={OPEN[view] ?? []} />;
}
function Stage({ start }: { start: Kind[] }) {
const [list, dispatch] = React.useReducer(reduce, start, (s) => s.map(make));
const phone = useMedia(MEDIA.phone);
const [focusGate, setFocusGate] = React.useState<string | null>(null);
const live = list.some((a) => a.phase === "running" || ended(a));
React.useEffect(() => {
if (!live) return;
const id = window.setInterval(() => dispatch({ type: "tick" }), 1000);
return () => window.clearInterval(id);
}, [live]);
const set = (id: string, f: (a: Row) => Row) => dispatch({ type: "set", id, f });
const has = (k: Kind) => list.some((a) => a.kind === k);
const add = (kind: Kind) => {
if (has(kind)) return;
const row = make(kind);
dispatch({ type: "add", row });
/* the gate this press raises takes focus: the hand is already there */
if (kind === "send") setFocusGate(row.id);
};
const cards = [
{ key: "run" as const, mark: <CompanyMark name="Vercel" color="#000000" glyph="m12 1.608 12 20.784H0Z" size="md" />, title: "Fix the failing build", line: "web · main · 2 checks failing", cta: "Start run", on: () => add("run") },
{ key: "send" as const, mark: <CompanyMark name="Raycast" color="#ff6363" size="md" />, title: "Follow up with Raycast", line: "3 drafts ready · Ana, Theo and Mia", cta: "Send 3 emails", on: () => add("send") },
{
key: "timer" as const,
mark: (
<span className="flex size-7 items-center justify-center rounded-[var(--ns-radius-sm)] bg-[var(--ns-well)] text-[var(--ns-ink-2)]">
<CalendarDays aria-hidden className="size-4" strokeWidth={1.75} />
</span>
),
title: "Focus block",
line: "Write the Q4 launch notes",
cta: "Start 25:00",
on: () => add("timer"),
},
];
const notch = (
<Notch
items={list}
place={phone ? "pill" : "header"}
pillBottom={74}
focusGate={focusGate}
onAllow={(id) => set(id, (a) => (a.phase === "waiting" ? { ...a, phase: "running", present: a.steps[a.step]?.title ?? a.present, t: 0 } : a))}
onDeny={(id) => set(id, (a) => (a.phase === "waiting" ? { ...a, phase: "stopped", past: a.kind === "send" ? "Didn't send the emails" : "Stopped before the push", outcome: undefined, t: 0 } : a))}
onUndo={(id) => set(id, (a) => (a.phase === "done" ? { ...a, phase: "undone", past: a.kind === "send" ? "Unsent 3 emails" : "Reverted the push", outcome: undefined, t: 0, undoLeft: 0 } : a))}
onPause={(id) => set(id, (a) => (a.phase === "running" ? { ...a, phase: "paused" } : a.phase === "paused" ? { ...a, phase: "running" } : a))}
onStop={(id) => set(id, (a) => ({ ...a, phase: "stopped", past: a.kind === "timer" ? "Focus block stopped" : "Stopped the run", outcome: undefined, t: 0 }))}
/>
);
return (
<div
role="group"
aria-label="The Assistant app"
className={cn("relative isolate mx-auto flex w-full flex-col overflow-hidden rounded-[var(--ns-radius-xl)] bg-[var(--ns-canvas)] text-[var(--ns-ink)] shadow-[var(--ns-depth-card)]", phone ? "h-[640px] max-w-[390px]" : "h-[520px] max-w-[1040px]")}
>
<header className="relative z-20 flex h-14 shrink-0 items-center gap-3 border-b border-[var(--ns-line)] bg-[var(--ns-panel)] px-4">
<span className="flex min-w-0 items-center gap-2 text-[length:var(--ns-text-body)] font-[number:var(--ns-weight-medium)]">
<span aria-hidden className="size-5 rounded-[var(--ns-radius-sm)] bg-[var(--ns-signal)]" />
Assistant
</span>
<div className="flex min-w-0 flex-1 justify-center">{phone ? null : notch}</div>
{!phone && (
<span className="flex items-center gap-3 text-[var(--ns-ink-3)]">
<Search aria-hidden className="size-4" strokeWidth={1.75} />
<Bell aria-hidden className="size-4" strokeWidth={1.75} />
</span>
)}
<span aria-hidden className="flex size-7 items-center justify-center rounded-full bg-[var(--ns-well)] text-[length:var(--ns-text-meta)] font-[number:var(--ns-weight-medium)] text-[var(--ns-ink-2)]">
JL
</span>
</header>
<div className="flex min-h-0 flex-1">
{!phone && (
<nav aria-label="Sections" className="flex w-44 shrink-0 flex-col gap-0.5 border-e border-[var(--ns-line)] bg-[var(--ns-panel)] p-3 text-[length:var(--ns-text-small)]">
{["Home", "Runs", "Inbox", "Calendar"].map((n, i) => (
<span key={n} className={cn("rounded-[var(--ns-radius-control-sm)] px-2.5 py-1.5", i === 0 ? "bg-[var(--ns-selected)] text-[var(--ns-ink)]" : "text-[var(--ns-ink-2)]")}>
{n}
</span>
))}
</nav>
)}
<main className={cn("min-w-0 flex-1 overflow-hidden", phone ? "px-4 pt-8" : "px-10 pt-14")}>
<h2 className="m-0 text-[length:var(--ns-text-title)] font-[number:var(--ns-weight-medium)] tracking-tight">Good morning</h2>
<p className="m-0 mt-1 text-[length:var(--ns-text-small)] text-[var(--ns-ink-3)]">Three things are ready to start. The Notch keeps them in view while you work.</p>
<ul className={cn("m-0 mt-6 grid list-none gap-3 p-0", phone ? "grid-cols-1" : "grid-cols-3")}>
{cards.map((c) => (
<li key={c.key} className="flex flex-col gap-3 rounded-[var(--ns-radius-xl)] bg-[var(--ns-depth-surface)] p-4 shadow-[var(--ns-depth-card)]">
<div className="flex items-center gap-3">
{c.mark}
<div className="min-w-0">
<div className="truncate text-[length:var(--ns-text-body)] font-[number:var(--ns-weight-medium)]">{c.title}</div>
<div className="truncate text-[length:var(--ns-text-small)] text-[var(--ns-ink-3)]">{c.line}</div>
</div>
</div>
<Button size="sm" intent={c.key === "send" ? "primary" : "secondary"} onClick={c.on} disabled={has(c.key)} className="self-start">
{c.cta}
</Button>
</li>
))}
</ul>
</main>
</div>
{phone && (
<>
{notch}
<nav aria-label="Tabs" className="relative z-10 flex h-16 shrink-0 items-start justify-around border-t border-[var(--ns-line)] bg-[var(--ns-panel)] pt-2">
{[
{ n: "Home", I: Home },
{ n: "Inbox", I: Inbox },
{ n: "Calendar", I: CalendarDays },
{ n: "Search", I: Search },
].map(({ n, I }, i) => (
<span key={n} className={cn("flex w-16 flex-col items-center gap-0.5 text-[length:var(--ns-text-meta)]", i === 0 ? "text-[var(--ns-ink)]" : "text-[var(--ns-ink-3)]")}>
<I aria-hidden className="size-5" strokeWidth={1.75} />
{n}
</span>
))}
</nav>
</>
)}
</div>
);
}This example also uses Company mark. This command installs them with it, so the example pastes as it is:
pnpm dlx shadcn@latest add @notchset-pro/notch @notchset/company-markcomponents/ui/notchset/blocks/notch.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
LevelOrganism: made of molecules or blocks.
Made ofButton,Live label,Popover,Rolling clock,Status glyph, run states,Stream adapters,Tool row
Needs your registry key. Every components.json style gets the same files.
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.
items–
readonly NotchItem[]the items, in any order: the Notch speaks for the one that matters most
place–
"header" | "pill"header: the rail sits where it is placed; pill: it floats at the foot of its positioned host. By default a pill below 600px wide, the rail above
pillBottom16
numberthe pill's distance from its host's foot (above a tab bar), in px
onAllow–
(id: string) => voidonDeny–
(id: string) => voidonUndo–
(id: string) => voidonPause–
(id: string) => voidpause or resume a timer
onStop–
(id: string) => voidfocusGate–
string | nullthe id of a gate the person's own press just raised: it takes focus, since the hand is already there
peekMs4000
numberhow long a phase change peeks its words, in ms
labels–
Partial<NotchLabels>Three usesan assistant app's header: runs and approvals in view · a task app's focus timer · a CRM's sent emails with Undo
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)One payment, lifetime.
v2.0.0 · 2026-10-13
Released with the Notchset system.