|
4 | 4 | case their device hides scrollbars.
|
5 | 5 | - Uses
|
6 | 6 | [Intersection Observer](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver)
|
7 |
| - for great performance – no listening for `scroll` or `resize` events. |
| 7 | + for performance and accuracy – no listening for `scroll` or `resize` events. |
8 | 8 | - Flexible: render any style of indicator you want (shadows, arrows, messages,
|
9 | 9 | etc.) wherever you want, using any styling solution.
|
10 | 10 |
|
@@ -86,8 +86,8 @@ return (
|
86 | 86 |
|
87 | 87 | ### Overflow
|
88 | 88 |
|
89 |
| -The overflow state provider. At a minimum it must contain a `<Overflow.Content>` |
90 |
| -element, otherwise it will do nothing. |
| 89 | +The overflow state provider. At a minimum it must contain an |
| 90 | +`<Overflow.Content>` element, otherwise it will do nothing. |
91 | 91 |
|
92 | 92 | ```jsx
|
93 | 93 | <Overflow>
|
@@ -129,7 +129,7 @@ const MyContainer = styled(Overflow)`
|
129 | 129 | <td valign="top" align="right" rowspan="1"></td>
|
130 | 130 | <td valign="top" valign="top" rowspan="1">
|
131 | 131 |
|
132 |
| -Elements to render inside the outer container. This should include a |
| 132 | +Elements to render inside the outer container. This should include an |
133 | 133 | `<Overflow.Content>` element at a minimum, but should also include your scroll
|
134 | 134 | indicators if you’d like to overlay them on the scrollable viewport.
|
135 | 135 |
|
@@ -171,7 +171,7 @@ lot of padding and scrolling close enough to the edge should be good enough.
|
171 | 171 |
|
172 | 172 | Wrapper for content to render inside the scrollable viewport. This element will
|
173 | 173 | grow to whatever size it needs to hold its content, and will cause the parent
|
174 |
| -viewport element to overflow. It must be rendered inside a `<Overflow>` |
| 174 | +viewport element to overflow. It must be rendered inside an `<Overflow>` |
175 | 175 | ancestor.
|
176 | 176 |
|
177 | 177 | #### Props
|
@@ -203,7 +203,7 @@ Content to render inside the scrollable viewport.
|
203 | 203 |
|
204 | 204 | A helper component for rendering your custom indicator when the viewport is
|
205 | 205 | scrollable in a particular direction (or any direction). Must be rendered inside
|
206 |
| -a `<Overflow>` ancestor. |
| 206 | +an `<Overflow>` ancestor. |
207 | 207 |
|
208 | 208 | You can provide a `direction` prop to indicate when scrolling is allowed in a
|
209 | 209 | particular direction:
|
|
0 commit comments