Open softmarshmallow opened 1 month ago
If you don't want to modify your local copy of the component code, you can use TailwindCSS's *
variant to style tags not affected by the className
prop exposed by unaltered shadcn components.
In your case @softmarshmallow it looks like you would need to do something like this:
<div className="*:w-full *:h-full">
<CarouselContent>
</div>
The immediate children of the div should be the top-level div in the Carousel
component which you are trying to style.
Describe the bug
In a scenario where carousel size is determined by the container, not the content (item) passing
won't work since the className is accepted by the second child
I am trying to use carousel in a definitive grid, and grid area, where content should follow the sizing, as the size is overriden (ignored by CarouselContent, I think its a wrong design. (or at least make it more atomic or allow className separation)
Affected component/components
Carousel
How to reproduce
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Before submitting