scroll: Vertical and horizontal scroll

View source: R/design-scroll.R

scrollR Documentation

Vertical and horizontal scroll

Description

Many of the applications you build despite a complex layout will still fit onto a single page. To help scroll long content alongside shorter content use the scroll() utility function.

Usage

scroll(x, direction = "vertical")

Arguments

x

A tag element or .style pronoun.

direction

One of "horizontal" or "vertical" specifying which direction to scroll overflowing content, defaults to "vertical", in which case the content may scroll up and down.

Examples


div() %>% scroll()
# ->
div() %>% cascadess::overflow_all()


nteetor/dull documentation built on Nov. 7, 2024, 2:11 p.m.