Atelier UI

Search components…

Search components…

Diff Viewer

Side-by-side and unified text diff with line numbers and word-level highlights, stacking to unified on narrow screens.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

DiffViewerProps

Also accepts all props of Omit<React.ComponentProps<"div">, "children">

PropTypeDefaultDescription
oldText* requiredstring——
newText* requiredstring——
filenamestring—File name or title shown in the header
defaultModeDiffMode——

Install

$ npx shadcn@latest add https://chromotion.dev/r/diff-viewer.json

More like this