Launch priceOne payment

Dry-Run Preview

A batch of proposed changes to records, files and settings, each marked Create, Update or Delete, with updates diffed field by field and unchanged fields folded away. Validation warnings sit on their change, deletes are counted and confirmed, and approving and applying can be two separate steps with per-change results.

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

The decision inside it

Deletes are loud

Every deletion is red, counted at the top and confirmed again before it goes, because it is the one change that cannot be taken back from here.

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 Dry-Run Preview for this.
Install it: npx shadcn@latest add @layro/dry-run-preview
Import it from @/components/ui/dry-run-preview.
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
previewrequiredDryRunPreviewData—
selectablebooleanEach change gets a checkbox, and only ticked ones are sent.
onChangeSelect(id: string, selected: boolean) => void—
onApprove(ids: string[]) => void | Promise<void>Approve the ticked changes. May return a promise.
onReject(reason?: string) => void | Promise<void>Reject the whole batch, with an optional reason. May return a promise.
onApply(ids: string[]) => void | Promise<void>Apply the ticked changes. May return a promise.
isSubmittingbooleanSubmitting, if you track it yourself.
actionErrorReact.ReactNodeAn error from your side.

Dependencies

npm packages

clsxframer-motionlucide-reacttailwind-merge

Layro foundations, installed alongside it

layro-themebadgebuttoncheckboxstate

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