diff --git a/README.md b/README.md index 06fb2f8ae..f9fe19746 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ export default { | loop | Boolean | false | Flag to make the carousel loop around when it reaches the end. | | minSwipeDistance | Number | 8 | Minimum distance for the swipe to trigger a slide advance. | | mouseDrag | Boolean | true | Flag to toggle mouse dragging. | -| navigateTo | Number | 0 | Listen for an external navigation request using this prop. | +| navigateTo | Number, Array | 0 | Listen for an external navigation request using this prop. When the supplied prop is of type Number the slide with the matching index is animated into view, however you can disable this animation by supplying an Array consisting of exactly two element: the new slide index and a boolean indication whether the change should be animated or not (eg. [3, false] would mean "go to the slide with index 3 without animation"). | | navigationClickTargetSize | Number | 8 | Amount of padding to apply around the label in pixels. | | navigationEnabled | Boolean | false | Flag to render the navigation component (next/prev buttons). | | navigationNextLabel | String | ▶ | Text content of the navigation next button. | diff --git a/play/index.js b/play/index.js index 931f7b093..458db5b65 100644 --- a/play/index.js +++ b/play/index.js @@ -312,15 +312,15 @@ play("Carousel", module) .add("NavigateTo slides", { template: `