Launch priceOne payment

Task Plan

An ordered list the agent keeps honest as it works: the circle turns on the step in progress, the tick draws itself when it is done, the line between steps fills, and a failed or skipped step says so in words. Steps can nest one level, and the plan folds down to the current step.

Ready for AI tools one file typed props installs by name prompt included

The decision inside it

It flags a step before it runs

A `note` such as "Needs approval" sits on a pending step, so the person knows the risky part is still ahead instead of meeting it as a surprise.

Installation

How you get it

Paste this into Claude Code, Cursor, Codex or any coding agent. It installs the file and uses it as it is, instead of writing a new one.

Use Layro's Task Plan for this.
Install it: npx shadcn@latest add @layro/task-plan
Import it from @/components/ui/task-plan.
Do not rewrite or restyle it. Pass my data through its props
and keep its built-in states.

For the full brief with every prop and the mistakes assistants usually make, use Copy prompt above. Pro components install through the @layro registry with your CLI token: see the Namespaced tab.

API

“Copy prompt” above puts a full brief on your clipboard — install command, dependencies, props, and the mistakes an assistant usually makes with this component.

Props

Read from the component’s own TypeScript interface when the site is built, so this table cannot drift from the file you install.

PropTypeNotes
stepsrequiredPlanStep[]—
titleReact.ReactNode | falseThe heading. Pass `false` to hide the header row. Default "Plan".
collapsiblebooleanLet the header fold the plan down to the step in progress.
defaultOpenboolean—
openboolean—
onOpenChange(open: boolean) => void—
onStepClick(step: PlanStep) => voidMakes each step a button — to scroll a thread to it, say.
densebooleanTighter rows, for a narrow side panel.

Dependencies

npm packages

clsxframer-motionlucide-reacttailwind-merge

Layro foundations, installed alongside it

layro-theme

Lifetime access

Every component, and everything we ship next.

  • All 112 components, source included
  • The template, and everything released after you buy
  • shadcn CLI or download — React 18/19, Tailwind v4
  • One payment. No subscription.

More in AI Agent

All AI Agent components