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
+12-13
Original file line number
Diff line number
Diff line change
@@ -25,19 +25,6 @@ const MyComponent = () => (
25
25
);
26
26
```
27
27
28
-
## Standalone Version
29
-
30
-
The standalone version does **not** come bundled with [scroll-into-view-if-needed](https://www.npmjs.com/package/scroll-into-view-if-needed). Use this version if you'd like to maintain your own dependency for scroll-into-view-if-needed, or if you're already using scroll-into-view-if-needed in other areas of your project.
31
-
32
-
**ES version:**
33
-
34
-
`import ScrollIntoViewIfNeeded from 'react-scroll-into-view-if-needed/dist/es/standalone.js'`
35
-
36
-
**UMD version:**
37
-
38
-
`import ScrollIntoViewIfNeeded from 'react-scroll-into-view-if-needed/dist/umd/standalone.js'`
39
-
40
-
41
28
## Props
42
29
43
30
Each prop is described in detail below, but for a quicker reference - check out the [propTypes](https://github.com/icd2k3/react-scroll-into-view-if-needed/blob/master/src/index.js#L7-L42) object in src.
@@ -111,6 +98,18 @@ You can also pass normal element attributes like `className` to the component.
111
98
</ScrollIntoViewIfNeeded>
112
99
```
113
100
101
+
## Standalone Version
102
+
103
+
The standalone version does **not** come bundled with [scroll-into-view-if-needed](https://www.npmjs.com/package/scroll-into-view-if-needed). Use this version if you'd like to maintain your own dependency for scroll-into-view-if-needed, or if you're already using scroll-into-view-if-needed in other areas of your project.
104
+
105
+
**ES version:**
106
+
107
+
`import ScrollIntoViewIfNeeded from 'react-scroll-into-view-if-needed/dist/es/standalone.js'`
108
+
109
+
**UMD version:**
110
+
111
+
`import ScrollIntoViewIfNeeded from 'react-scroll-into-view-if-needed/dist/umd/standalone.js'`
112
+
114
113
## Upgrading from v1
115
114
116
115
This project has been updated along with `scroll-into-view-if-needed` and accepts the same `options`. Check out the [migration guide](https://www.npmjs.com/package/scroll-into-view-if-needed#breaking-api-changes-from-v1) over there!
0 commit comments