Scroll Area
Description
A scrollable region carrying the Basecoat scrollbar or scrollbar-sm class.
Usage
bc_scroll_area(
...,
size = "default",
overflow = "auto",
class = NULL,
aria_label = NULL
)
Arguments
| Argument | Description |
|---|---|
... |
Content and attributes for the scroll container. |
size |
String. default for scrollbar, sm for scrollbar-sm. |
overflow |
String. The overflow utility: auto, x or y. |
class |
String. Extra classes, such as a height (h-72). |
aria_label |
String. Accessible name for the region, when its content needs one of its own. |
Value
A <div> tag.
Examples
bc_scroll_area(
htmltools::tags$p("Content that scrolls."),
class = "h-72"
)