powered by
Learn more at https://getbootstrap.com/docs/5.1/components/carousel/.
bs_carousel( id, items = list(), carousel_attr = c(class = "carousel slide"), inner_attr = c(class = "carousel-inner"), item_attr = c(class = "carousel-item"), controls = TRUE )
A string of HTML.
A string, the id to use for the carousel div.
A list, entries should be HTML to display in the carousel.
A named list or named vector, names are attribute names and values are attribute values. Added to the div wrapping the carousel content.
A named list or named vector, names are attribute names and values are attribute values. Added to the div wrapping the carousel items.
A named list or named vector, names are attribute names and values are attribute values. Added to the div wrapping each carousel item.
TRUE/FALSE, if TRUE, adds code to display arrows to click through the carousel.
bs_carousel( id = "c1", items = list( h1("First slide"), h1("Second slide"), h1("Third Slide") ) )
Run the code above in your browser using DataLab