You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-1
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Compare HTML and generate the differences in either a unified view or a side-by-
10
10
pnpm add @armantang/html-diff
11
11
```
12
12
13
-
## Quick Start
13
+
## Usage
14
14
15
15
```js
16
16
import'@armantang/html-diff/dist/index.css'
@@ -62,3 +62,7 @@ interface HtmlDiffOptions {
62
62
}>
63
63
}
64
64
```
65
+
66
+
## Synchronized scrolling
67
+
68
+
In the sideBySideContents, some elements have the `data-seq` attribute. We can use this to implement synchronized scrolling. [Click to see the demo.](https://github.com/Arman19941113/html-diff/blob/master/examples/basic/src/components/SideBySide.jsx)
0 commit comments