[feat]: Make a mention of size of slider is not equal to the size of the element
in Carousel
#6436
Open
2 tasks done
Labels
Feature description
It may be obvious to some that if you use
pl-[value]
, you need to factor that indentation into the slider size as well, i.e.item size + indentation = slider size
. Because basically inside theCarouselItem
element is some other element, like a product card etc.But it's just not always obvious. Because of different settings, for example
containScroll
,align
, sometimes it is not clear where and how something should be placed. It makes my head swell if I try to combine it with classes likecontainer
from tailwindcss.For example, I don't know
embla-carousel
and it's the first time I use it inshadcnui
, so this strange behavior was a discovery for me.--slide-size
not equalelement size inside the slide
.Affected component/components
https://codesandbox.io/p/sandbox/embla-carousel-default-react-forked-snjtld
Additional Context
Additional details here...
Before submitting
The text was updated successfully, but these errors were encountered: