Skip to main content

Carousel

A Carousel is a flexible, client-side component built using Embla Carousel. It displays content horizontally or vertically in a scrollable, sliding format, with inline navigation options such as previous/next buttons and slide indicators. The component is customizable for various layouts and screen sizes through its configuration options.

Example

Carousel Header

1
2
3
4
5
6
7
8
9
10
11
12

Variants

Use theicon above to preview
VariantDescriptionValues
smNumber of columns in small screens
  • 1
  • 2
mdNumber of columns in medium screens
  • 1
  • 2
  • 3
lgNumber of columns in large screens
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
fullBleedWidth of the grid is flush left and right or has side padding
  • true
  • false
paddingTopOption to control spacing above the carousel
  • regular
  • extra
paddingBottomOption to control spacing below the carousel
  • regular
  • extra
contentArray of carousel contentArray of content blocks
headerTextOptional text above the carouselString
headerTextPositionText alignment of the header
  • left
  • right
  • center

Customization

The approach for customization will vary depending on if the customization is intended to be global for all consumers of the UI component or if it is only an override for a particular instance.

  • If the customization is necessary for all use cases, update the component source code in the UI library package directly.
  • Otherwise, pass className overrides. Class overrides can be applied to all sub-components.