Carousel
A sliding component that showcases multiple pieces of content or images in a rotating or swiping interface.
Loading...
Installation
Usage
API
Carousel Props
For Carousel Component
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | ReactNode | ReactNode[] | Slides to be rendered inside the carousel. Typically composed of CarouselItem components. | - |
| size | "sm" | "md" | "lg" | Controls the maximum width of the carousel container. | "md" |
| autoPlay | boolean | Enables automatic slide transitions at a fixed interval. | false |
| intervalMs | number | Time interval in milliseconds between automatic slide transitions when autoPlay is enabled. | 3000 |
| className | string | Additional CSS classes to customize the carousel container styling. | - |
For Carousel Item
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | ReactNode | ReactNode[] | Content of an individual carousel slide. | - |
| className | string | Additional CSS classes to customize the carousel item styling. | - |
Examples
Default
Loading...
With Autoplay and Intervals
Loading...
Credits
This component is inspired by Rehman Kalawant Design Shared On Github.