@@ -4,16 +4,17 @@ Component for displaying stories. It looks like a carousel in a modal with given
44
55### PropTypes
66
7- | Property | Type | Required | Default | Description |
8- | :------------------ | :-------------- | :------- | :------ | :----------------------------------------------- |
9- | open | ` Boolean ` | ✓ | | Visibility flag |
10- | items | ` StoriesItem[] ` | ✓ | | List of stories to display |
11- | initialStoryIndex | ` Number ` | | 0 | Index of the first story to be displayed |
12- | onClose | ` Function ` | | | Action on close |
13- | onPreviousClick | ` Function ` | | | Action when switching to previous story |
14- | onNextClick | ` Function ` | | | Action when switching to next story |
15- | disableOutsideClick | ` Boolean ` | | true | If ` true ` , do not close stories on click outside |
16- | className | ` string ` | | | Stories modal class |
7+ | Property | Type | Required | Default | Description |
8+ | :--------------------- | :-------------- | :------- | :------ | :------------------------------------------------ |
9+ | open | ` Boolean ` | ✓ | | Visibility flag |
10+ | items | ` StoriesItem[] ` | ✓ | | List of stories to display |
11+ | initialStoryIndex | ` Number ` | | 0 | Index of the first story to be displayed |
12+ | resetStoryIndexOnClose | ` Boolean ` | | false | If ` true ` , reset story index to initialStoryIndex |
13+ | onClose | ` Function ` | | | Action on close |
14+ | onPreviousClick | ` Function ` | | | Action when switching to previous story |
15+ | onNextClick | ` Function ` | | | Action when switching to next story |
16+ | disableOutsideClick | ` Boolean ` | | true | If ` true ` , do not close stories on click outside |
17+ | className | ` string ` | | | Stories modal class |
1718
1819### StoriesItem object
1920
0 commit comments