Ready-to-Use Components Powered by Flowbite, ShadCN & Headless UI
Component Library
Browse and explore components
Carousel
A Carousel is a UI component used to cycle through a series of images or content in a sliding manner.
Default Carousel
Sample Code
Static Carousel
Sample Code
Sliding Interval
Sample Code
Custom controls
Sample Code
Indicators
Sample Code
Pause On Hover
Sample Code
Slider Content
Sample Code
Handle Event
Sample Code
API ( Carousel )
Prop | Description | Type | Default |
---|---|---|---|
slide | Enable or disable sliding transitions. | boolean | true |
indicators | Show navigation indicators below the carousel. | boolean | true |
pauseOnHover | Pause the carousel on mouse hover (desktop) or touch and hold (mobile). | boolean | false |
slideInterval | Time interval between slides in milliseconds. | number | 5000 |
leftControl | Custom left navigation control. | '<' | 'left' | - |
rightControl | Custom right navigation control. | '>' | 'right' | - |
onSlideChange | Callback function when the slide changes. | '(index) => console.log("onSlideChange()", index)' | - |
activeIndex | Manually control the active slide index. | number | - |