Carousel
Carousel showcases content in a beautiful, scrollable container. It supports horizontal and vertical layouts, and customizable scroll snapping.
Basic Usage







Carousel showcases content in a beautiful, scrollable container. It supports horizontal and vertical layouts, and customizable scroll snapping.







The Carousel components include the following:
The main wrapper for carousel content. Customize its appearance and scroll behavior with props for snapping and orientation. Use with CarouselItem for best results.
| Carousel Props | Type | Description |
|---|---|---|
snapTo | string | Sets the scroll snap alignment. Options: |
| center | boolean | Shortcut for |
| end | boolean | Shortcut for |
orientation | string | Sets the orientation of the carousel. Options: |
vertical | boolean | Gives the carousel a vertical layout. Equivalent to |
horizontal | boolean | Gives the carousel a horizontal layout. Equivalent to |
| Carousel Slots | Description |
|---|---|
default | The default slot. Place CarouselItem components or other content here. |
The item wrapper for Carousel. Use to wrap images or other content. Must be a direct child of Carousel.
| CarouselItem Slots | Description |
|---|---|
default | The default slot. Content to be displayed inside the carousel item. |
Demonstrates the snapTo="center" prop, which aligns carousel items to the center when scrolling.







Demonstrates the snapTo="end" prop, which aligns carousel items to the end when scrolling.







Shows the carousel in a vertical orientation using the vertical prop.






