bs_carousel | R Documentation |
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 )
id |
A string, the id to use for the carousel div. |
items |
A list, entries should be HTML to display in the carousel. |
carousel_attr |
A named list or named vector, names are attribute names and values are attribute values. Added to the div wrapping the carousel content. |
inner_attr |
A named list or named vector, names are attribute names and values are attribute values. Added to the div wrapping the carousel items. |
item_attr |
A named list or named vector, names are attribute names and values are attribute values. Added to the div wrapping each carousel item. |
controls |
TRUE/FALSE, if TRUE, adds code to display arrows to click through the carousel. |
A string of HTML.
bs_carousel( id = "c1", items = list( h1("First slide"), h1("Second slide"), h1("Third Slide") ) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.