Scroll Area

Description

Create a scrollable area with a styled scrollbar.

Usage

bc_scroll_area(
  ...,
  size = "default",
  overflow = "auto",
  class = NULL,
  aria_label = NULL
)

Arguments

Argument Description
... Tag attributes and content.
size String. "default" or "sm" for a smaller scrollbar.
overflow String. Which way the content scrolls. One of "auto" (default), "x", or "y".
class String. Extra CSS classes, such as a height (h-72).
aria_label String. Accessible name for the scroll area.

Value

An htmltools tag.

Examples

bc_scroll_area(
  htmltools::tags$p("Content that scrolls."),
  class = "h-72"
)

Content that scrolls.