docs(react-carousel): Add autoplayInterval control to Autoplay story#35756
Open
docs(react-carousel): Add autoplayInterval control to Autoplay story#35756
Conversation
Co-authored-by: dmytrokirpa <1492102+dmytrokirpa@users.noreply.github.com>
…bute Co-authored-by: dmytrokirpa <1492102+dmytrokirpa@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update Carousel Autoplay example with autoplayInterval prop
feat(react-carousel): Add autoplayInterval control to Autoplay story
Feb 17, 2026
Contributor
|
@copilot add change file by running |
Co-authored-by: dmytrokirpa <1492102+dmytrokirpa@users.noreply.github.com>
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update Carousel Autoplay Example to Include autoplayInterval Prop
Resolves the issue where the Autoplay example didn't clearly demonstrate how to use the
autoplayIntervalprop.autoplayIntervalpropautoplayIntervalto the Carousel componentChanges Made
Added Input control for
autoplayIntervalprop in the Autoplay exampleConnected the interval control to the Carousel component by passing the
autoplayIntervalpropUpdated story documentation to explain the
autoplayIntervalprop and its default valueAdded beachball change file for tracking this documentation update
Screenshot
The updated example now clearly demonstrates:
autoplayIntervalpropTesting & Validation
✅ Build: Passed -
yarn nx run react-carousel:build✅ Linting: Passed -
yarn nx run react-carousel:lint✅ Tests: All 203 tests passed -
yarn nx run react-carousel:test✅ Manual verification: Autoplay advances slides at the specified interval (tested with 2000ms)
✅ Code review: Feedback addressed (validation aligned with min attribute)
✅ Security: No issues found - CodeQL analysis
✅ Change file: Created for @fluentui/react-carousel
Security Summary
No security vulnerabilities were introduced or found in this change. This is a documentation-only change to a Storybook example.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.