The one task that moves a deal: tick it, then add the next.
Every shadcn style · one file
v2.0 · Updated Oct 13pnpm dlx shadcn@latest add @notchset-pro/next-steppnpm dlx shadcn@latest add @notchset-pro/next-stepNeeds 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 { NextStep } from "@/components/ui/notchset/blocks/next-step";
/* the choices offered and the words a saved step shows come from one list; the block adds "Due" itself */
const DUES = [
{ label: "Tomorrow", value: 1 },
{ label: "In 3 days", value: 3 },
{ label: "Next week", value: 7 },
];
const when = (due: number) => (DUES.find((d) => d.value === due)?.label ?? `In ${due} days`).toLowerCase();
export default function NextStepDemo() {
const [task, setTask] = React.useState<{ title: string; due: number; who: string } | undefined>({ title: "Send the order form to Ana", due: 1, who: "Ana Ruiz" });
const [adding, setAdding] = React.useState(false);
return (
<div className="w-full max-w-md">
<NextStep
task={task && { title: task.title, when: when(task.due), who: task.who }}
done={false}
onDone={() => setTask(undefined)}
adding={adding}
onAddingChange={setAdding}
onAdd={(title, due) => {
setTask({ title, due, who: "Ana Ruiz" });
setAdding(false);
}}
suggestions={["Book the security review", "Send the DPA"]}
dues={DUES}
/>
</div>
);
}components/ui/notchset/blocks/next-step.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
task–
{ title: string; when: string; late?: boolean | undefined; /** Who it's for, when it isn't the record's owner already shown beside it. */ who?: string | undefined }done–
booleanThe task was just ticked and is about to leave.
onDone–
() => voidRequired.
adding–
booleanRequired.
onAddingChange–
(adding: boolean) => voidRequired.
onAdd–
(title: string, due: number) => boolean | voidSave the new step; return false to keep the form (a refused save keeps what was typed).
suggestions[]
string[]dues–
Due[]Required.
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.