Skip to contents

A container with styled overlay scrollbars. Not a Shiny input.

Usage

shad_scroll_area(
  ...,
  height = NULL,
  orientation = c("vertical", "horizontal", "both"),
  class = NULL
)

Arguments

...

Scrollable content.

height

Optional CSS height for the area.

orientation

"vertical" (default), "horizontal", or "both".

class

Extra CSS classes.

Value

A scroll-area tag.

Examples

shad_scroll_area(height = "12rem", "Lots of content...")
#> <div class="shad-scroll-area" data-shad="scroll-area" style="height:12rem;">
#>   <div class="shad-scroll-area__viewport" tabindex="0">Lots of content...</div>
#>   <div class="shad-scroll-area__scrollbar" data-orientation="vertical">
#>     <div class="shad-scroll-area__thumb"></div>
#>   </div>
#> </div>