Asks why it happened, one tap per reason, never a gate.
Every shadcn style · one file
v2.0 · Updated Oct 13pnpm dlx shadcn@latest add @notchset-pro/reason-promptpnpm dlx shadcn@latest add @notchset-pro/reason-promptNeeds 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.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { ReasonPrompt } from "@/components/ui/notchset/blocks/reason-prompt";
export default function ReasonPromptDemo() {
/* undefined: still asking; null: skipped */
const [asked, setAsked] = React.useState<string | null | undefined>(undefined);
return asked === undefined ? (
<ReasonPrompt question="Why did it slip?" context="Dec 20 → Jan 16, out of the quarter" reasons={["Budget", "Timing", "Champion left", "Competitor", "Other"]} onPick={setAsked} onSkip={() => setAsked(null)} />
) : (
<span className="text-[length:var(--ns-text-small)] text-[var(--ns-ink-3)]">
{asked ? `Saved: ${asked}.` : "Skipped."}{" "}
<button type="button" className="cursor-pointer text-[var(--ns-ink)] underline underline-offset-2" onClick={() => setAsked(undefined)}>
Ask again
</button>
</span>
);
}components/ui/notchset/blocks/reason-prompt.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
question–
stringRequired.
context–
React.ReactNodewhat happened, in a few words
reasons–
string[]Required.
onPick–
(reason: string) => voidRequired.
onSkip–
() => 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.
Pro is in early access.