Skip to main content

Carousel

A Carousel displays content in a carousel with inline navigation. The UI package contains a base Carousel and a ResponsiveCarousel. Within the High Velocity CMS pacakge (hv-cms), a third variation - a ContentCarousel - is used with CMS content. The ContentCarousel uses the UI components configured from within the CMS as its slides. The carousel is built with Embla Carousel. All carousels are client-side components ('use client').

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
headerTextPositionText alignment of the header
  • Left
  • Right
  • Center

Customization

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 of in the ui library package directly.
  • Otherwise, pass className overrides. Class overrides can be applied to all sub-components except for the CarouselHeaderText.