powered by
Create a Bootstrap carousel
bs_carousel( id, items = list(), carousel_class = "carousel slide", inner_class = "carousel-inner", item_class = "carousel-item", controls = TRUE )
A string, the id to use for the carousel div.
A list, entries should be HTML to display in the carousel.
A string, the class of the div wrapping the carousel content.
A string, the class of the div wrapping the carousel items.
A string, the class of the div wrapping each carousel item.
TRUE/FALSE, if TRUE, adds code to display arrows to click through the carousel.
A string of HTML.
# NOT RUN { bs_carousel( id = "c1", items = list( h1("First slide"), h1("Second slide"), h1("Third Slide") ) ) # }
Run the code above in your browser using DataLab