Is there a way to let CarouselProvider naturalSlideHeight to be `auto`?
See original GitHub issueIs there a way for the CarouselProvider container be responsive to only width? Currently, the implementation requires naturalSlideWidth={%} and naturalSlideHeight={%}. Or maybe adding a property which disables the need to specify a naturalSlideHeight by defaulting to making height=auto
?
The use case would be to enter text as a slide. So when you resize the window, it still shows all the text, rather than the specified naturalSlideHeight, since it would cut off some text.
I realize most people use this carousel for images, but my use case is for a testimonial slider, where resizing makes the height different when it’s responsive 😅. I haven’t been able to find an example of someone doing something like that.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:14
- Comments:5
Top Results From Across the Web
How to Build an Auto-Playing Slideshow with React - Tinloof
Step 2: styling. First, let's style the parent container slideshow:.
Read more >Pure React Carousel displaying all slides at the same time
Hello, I would like to have an automatic carousel displaying components. While testing the package out, all slides are displayed simultaneously.
Read more >Recursive JSX Rendering of A Deeply Nested Travel Gallery
naturalSlideHeight ={125} ... The <CarouselProvider> is supplied with props of the ratio of slide width, height, ... Let's see how to solve these...
Read more >react carousel - Code Examples & Solutions For This ...
import React from 'react'; import { CarouselProvider, Slider, Slide, ButtonBack, ... Component { render() { return ( I am the first Slide.
Read more >How to make number of visibleSlides responsive in CSS in ...
import React, { useState, useRef } from 'react'; import { CarouselProvider, Slider, Slide } from 'pure-react-carousel'; import { ...
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 FreeTop 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
Top GitHub Comments
I ended up using another npm package instead. @angryeuan
Same problem here, any solution for this?