<div class="carousel carousel-center rounded-box" items="[object Object] [object Object] [object Object] [object Object] [object Object]">
<div class="carousel-item"> <img src="https://picsum.photos/id/400/400/300" alt="" /></div>
<div class="carousel-item"> <img src="https://picsum.photos/id/401/400/300" alt="" /></div>
<div class="carousel-item"> <img src="https://picsum.photos/id/402/400/300" alt="" /></div>
<div class="carousel-item"> <img src="https://picsum.photos/id/403/400/300" alt="" /></div>
<div class="carousel-item"> <img src="https://picsum.photos/id/404/400/300" alt="" /></div>
</div>
@!jrmc.carousel({ items: [
{ url: 'https://picsum.photos/id/400/400/300' },
{ url: 'https://picsum.photos/id/401/400/300' },
{ url: 'https://picsum.photos/id/402/400/300' },
{ url: 'https://picsum.photos/id/403/400/300' },
{ url: 'https://picsum.photos/id/404/400/300' },
], class: 'carousel-center rounded-box' })
Doc : daisyui carousel
Carousel show images or content in a scrollable area.
Class name | Type | |
---|---|---|
carousel | Component | Container element |
carousel-item | Component | Carousel item |
carousel-center | Modifier | Snap elements to center |
carousel-end | Modifier | Snap elements to end |
carousel-vertical | Responsive | Vertical carousel |