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
|`stories`|[String/Object]|`required`| An array of image urls or array of story objects (options described below) |
51
-
|`renderers` ⚡️ |[Object]|`[]`| An array of renderer objects (options described below) |
52
-
|`defaultInterval`| Number | 1200 | Milliseconds duration for which a story persists |
53
-
|`loader`| Component | Ripple loader | A loader component as a fallback until image loads from url |
54
-
|`header`| Component | Default header as in demo | A header component which sits at the top of each story. It receives the `header` object from the `story` object. Data for header to be sent with each story object. |
55
-
|`storyContainerStyles`| Object |`{}`| Styles object for the outer container |
56
-
|`width`| Number/String | 360 | Width of the component, e.g. 600 or '100vw' or 'inherit' |
57
-
|`height`| Number/String | 640 | Height of the component, e.g. 1000 or '100%' or 'inherit' |
58
-
|`storyStyles`| Object | none | Override the default story styles mentioned below. |
59
-
|`progressContainerStyles`| Object |`{}`| Styles object for the container wrapping the progress bars |
60
-
|`progressWrapperStyles`| Object |`{}`| Styles object for the container wrapping each progress bar bars |
61
-
|`progressStyles`| Object |`{}`| Styles object for the progress bars |
62
-
|`loop`| Boolean | false | The last story loop to the first one and restart the stories. |
63
-
|**New props**| ⭐️ | ⭐️ | ⭐️ |
64
-
|`isPaused`| Boolean | false | Toggle story playing state |
65
-
|`currentIndex`| Number | undefined | Set the current story index |
66
-
|`onStoryStart`| Function | - | Callback when a story starts |
67
-
|`onStoryEnd`| Function | - | Callback when a story ends |
68
-
|`onAllStoriesEnd`| Function | - | Callback when all stories in the array have ended |
69
-
|`keyboardNavigation`| Boolean | false | Attaches arrow key listeners to navigate between stories if true. Also adds up arrow key listener for opening See More and Escape/down arrow for closing it |
70
-
|`preventDefault`| Boolean | false | Disable the default behavior when user click the component |
71
-
|`preloadCount`| number | 1 | Determines how many stories should be preloaded ahead of the current story index. |
|`stories`|[String/Object]|`required`| An array of image urls or array of story objects (options described below) |
51
+
|`renderers` ⚡️ |[Object]|`[]`| An array of renderer objects (options described below) |
52
+
|`defaultInterval`| Number | 1200 | Milliseconds duration for which a story persists |
53
+
|`loader`| Component | Ripple loader | A loader component as a fallback until image loads from url |
54
+
|`header`| Component | Default header as in demo | A header component which sits at the top of each story. It receives the `header` object from the `story` object. Data for header to be sent with each story object. |
55
+
|`storyContainerStyles`| Object |`{}`| Styles object for the outer container |
56
+
|`width`| Number/String | 360 | Width of the component, e.g. 600 or '100vw' or 'inherit' |
57
+
|`height`| Number/String | 640 | Height of the component, e.g. 1000 or '100%' or 'inherit' |
58
+
|`storyStyles`| Object | none | Override the default story styles mentioned below. |
59
+
|`progressContainerStyles`| Object |`{}`| Styles object for the container wrapping the progress bars |
60
+
|`progressWrapperStyles`| Object |`{}`| Styles object for the container wrapping each progress bar bars |
61
+
|`progressStyles`| Object |`{}`| Styles object for the progress bars |
62
+
|`loop`| Boolean | false | The last story loop to the first one and restart the stories. |
63
+
|**New props**| ⭐️ | ⭐️ | ⭐️ |
64
+
|`isPaused`| Boolean | false | Toggle story playing state |
65
+
|`currentIndex`| Number | undefined | Set the current story index |
66
+
|`onStoryStart`| Function | - | Callback when a story starts |
67
+
|`onStoryEnd`| Function | - | Callback when a story ends |
68
+
|`onAllStoriesEnd`| Function | - | Callback when all stories in the array have ended |
69
+
|`onNext`| Function | - | Callback when the user taps/press to proceed to the next story |
70
+
|`onPrevious`| Function | - | Callback when the user taps/press to go back to the previous story |
71
+
|`keyboardNavigation`| Boolean | false | Attaches arrow key listeners to navigate between stories if true. Also adds up arrow key listener for opening See More and Escape/down arrow for closing it |
72
+
|`preventDefault`| Boolean | false | Disable the default behavior when user click the component |
73
+
|`preloadCount`| number | 1 | Determines how many stories should be preloaded ahead of the current story index. |
0 commit comments