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
* add custom children support
* Apply suggestions from code review
Co-authored-by: Joshua Timmons <joshua.timmons1@gmail.com>
* Use refs for custom children ref props
---------
Co-authored-by: Jack Zhao <jzhao@betteromics.com>
Co-authored-by: Joshua Timmons <joshua.timmons1@gmail.com>
Copy file name to clipboardExpand all lines: README.md
+37-1Lines changed: 37 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,7 @@ export default () => (
82
82
83
83
#### Non-React
84
84
85
-
More details are in the [Viewer without React](#viewer-without-react) section.
85
+
More details are in the [Viewer without React](#without-react) section.
86
86
87
87
```html
88
88
<script>
@@ -292,6 +292,42 @@ Whether to show the complement sequence.
292
292
293
293
By default, the circular viewer rotates when scrolling over the viewer. That can be disabled with rotateOnScroll: false.
294
294
295
+
#### `Custom Rendering`
296
+
297
+
This makes use of the `children` and `refs` props to allow custom rendering of the sequence viewers. For example, to render the linear viewer above the circular viewer:
0 commit comments