logo

Lumina Design

ComponentsIcons
Installation
AccordionAppHeaderAutoCompleteAvatarBottomNavigationBreadcrumbButtonCarouselCheckboxChipColumnDataTableDatePickerDialogFloatingButtonFloatingMenuInputFieldLinkMenuDropdownNextToastProviderProgressRadioButtonRangeSliderResizablePanelSelectDropDownSideBarTabSelectTabsTagTextTextAreaThemeProviderToastProviderToggleInputToggleSwitchTooltip

Carousel

The Carousel component is a versatile UI element used for showcasing a series of content items, such as images, product cards, or testimonials, in a rotating format. It supports various customization options like autoplay, looping, and navigation controls. Carousels are widely used in homepages to highlight featured content, in product detail pages to showcase different product angles, or in testimonial sections to display customer reviews. They help manage space efficiently while keeping content dynamic and engaging.

img-19
img-0
img-1
img-2
img-3
img-4
img-5
img-6
img-7
img-8
img-9
img-10
img-11
img-12
img-13
img-14
img-15
img-16
img-17
img-18
img-19
img-0

Code

import Carousel from "@lumina-design/core/Carousel";
    
const images = [
  "https://via.placeholder.com/600x400?text=Slide+1",
  "https://via.placeholder.com/600x400?text=Slide+2",
  "https://via.placeholder.com/600x400?text=Slide+3",
  "https://via.placeholder.com/600x400?text=Slide+4",
  "https://via.placeholder.com/600x400?text=Slide+5",
  "https://via.placeholder.com/600x400?text=Slide+6"
];


<Carousel
  dots={true}
  slideShowInterval={5000}
  loop={true}
  className="my-carousal"
  id="my-carousal"
>
  {images.map((img, i) => (
    <img key={i} src={img} alt="image alt" />
  ))}
</Carousel>