Code Diff
The CodeDiff component is used to display code differences with syntax highlighting. It supports split and unified view modes, full-featured collapsible headers, patch rendering, custom actions, and visual variants for different display styles.

- Library
- Lobe UI
- Framework
- React
- Type
- component
- License
- MIT
- Install
pnpm add @lobehub/ui- Files
src/CodeDiff/CodeDiff.tsxsrc/CodeDiff/DiffPanel.tsxsrc/CodeDiff/index.tssrc/CodeDiff/PatchDiff.tsxsrc/CodeDiff/stable.tssrc/CodeDiff/style.csssrc/CodeDiff/style.tssrc/CodeDiff/theme.ts
- Source
- https://github.com/lobehub/lobe-ui