question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make CarouselItem accept children of any type

See original GitHub issue

Issue 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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
joao-albertocommented, Oct 19, 2017

Can I do it?

0reactions
tim-stassecommented, Dec 14, 2017

Pull request up #735 I believe this also addresses issue #719

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found