Make CarouselItem accept children of any type
See original GitHub issueIssue description
Getting the below warning when I try to use my own element with CarouselItem.
Invalid prop `children.type` of value `div` supplied to `CarouselItem`, expected one of [null].
- components:
CarouselItem
- reactstrap version
5.0.0-alpha.3
- react version
15.6.1
- bootstrap version
4.0.0-beta
Please make it accept an element or node, so that we are able to customize the CarouselItem.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Bootstrap Carousel - Item Child Management - Stack Overflow
This is an interesting problem. I don't immediately know the answer. I can think of a hack that might work. Create a carousel...
Read more >Invalid prop type of array supplied to CarouselItem, expected ...
What is happening? I am using react with typescript. ... I get the following error : Warning: Failed prop type: Invalid prop children...
Read more >How to create the responsive and swipeable Carousel - Medium
Line 17–19: Iterate all the children (will be the CarouselItem component) and adjust the width property. We will fix the width to 100%...
Read more >Carousel - Bootstrap
A slideshow component for cycling through elements—images or slides of text—like a carousel.
Read more >Creating an Accessible Image Carousel
This article covers everything you need to know to create an image carousel such as this using HTML, CSS, and JavaScript.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Can I do it?
Pull request up #735 I believe this also addresses issue #719