DiffView
변경 통계와 구·신 줄 번호를 보존한 통합 diff로 코드의 추가와 삭제를 비교한다.
활용 방법
Catalog change
Preview
+2-1
| Old line | New line | Change | Content |
|---|---|---|---|
| 12 | 12 | <Section title="Components"> | |
| 13 | - | <LegacyLinks /> | |
| 13 | + | <CatalogLinks /> | |
| 14 | + | <PatternLinks /> |
tsx
<DiffView filename="apps/docs/src/app/lyra/page.tsx" additions={2} deletions={1} lines={lines} />