Skip to contents

The carousel() allows the user to browse through a set of items. The component is mostly used for showing a gallery of images, but can hold any other HTML element.

See the official documention for carousel, for all the correct props.

carousel(
  cyclic = NA,
  style = "max-height: 30rem;",
  htmltools::tags$img(
    src = "https://sap.github.io/ui5-webcomponents/assets/images/sample1.jpg"
  ),
  htmltools::tags$img(
    src = "https://sap.github.io/ui5-webcomponents/assets/images/sample2.jpg"
  ),
  htmltools::tags$img(
    src = "https://sap.github.io/ui5-webcomponents/assets/images/sample3.jpg"
  )
)