One line of why, asked where the step was pressed.
Every shadcn style · one file
v2.0 · Updated Oct 13pnpm dlx shadcn@latest add https://notchset.dev/r/reason-popover.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/reason-popover.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
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.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { Button } from "@/components/ui/notchset/button";
import { ReasonPopover } from "@/components/ui/notchset/reason-popover";
export default function ReasonPopoverDemo() {
const [denied, setDenied] = React.useState<string | null>(null);
return (
<div className="flex items-center gap-3">
<ReasonPopover
trigger={<Button size="sm">Deny</Button>}
title="Why deny Q-1047?"
label="What would you approve instead?"
placeholder="e.g. 15% with a 2-year term"
verb="Deny"
align="start"
onSubmit={(reason) => setDenied(reason)}
/>
{denied && <span className="text-[length:var(--ns-text-small)] text-[var(--ns-ink-3)]">Denied: {denied}</span>}
</div>
);
}components/ui/notchset/reason-popover.tsx
trigger–
React.ReactElementThe control that opens it: one element that takes a ref.
title–
React.ReactNodeThe question, as a short heading ("Why deny Q-1047?").
label–
stringThe field's label.
placeholder–
stringverb–
stringThe verb that runs it ("Deny").
required"Say why, in a few words"
stringSaid when the field is empty and the verb is pressed.
onSubmit–
(reason: string) => string | null | undefined | voidRuns the step; return an error to show (and stay open), or nothing once it ran.
align"end"
"start" | "center" | "end"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.