Styling
Wrapper Styling
Apply classNames to the <div>
that contains the children
. This is likely how you will determine the spacing between items in the carousel.
By default, this wrapper has display: flex
applied.
Details
Prop Name | Type | Default Value |
---|---|---|
className | string | undefined |
Example
Code
<Carousel className="gap-4">
<img src="pexels-01.jpg" />
<img src="pexels-02.jpg" />
<img src="pexels-03.jpg" />
</Carousel>