A collection of functions to build custom layouts that can be used in other
functions, such as value_box().
Usage
showcase_left_center(
width = 0.3,
width_full_screen = "1fr",
max_height = "100px",
max_height_full_screen = 0.67
)
showcase_top_right(
width = 0.4,
width_full_screen = "1fr",
max_height = "75px",
max_height_full_screen = 0.67
)
showcase_bottom(
width = "100%",
width_full_screen = NULL,
height = "auto",
height_full_screen = "2fr",
max_height = "100px",
max_height_full_screen = NULL
)Arguments
- width, width_full_screen, height, height_full_screen
one of the following:
A proportion (i.e., a number between 0 and 1) of available width or height to allocate to the showcase.
A valid CSS unit defining the width or height of the showcase column, or a valid value accepted by the
grid-template-columns(width) orgrid-template-rows(height) CSS property to define the width or height of the showcase column or row. Accepted values in the second category are"auto","min-content","max-content", a fractional unit (e.g.2fr), or aminmax()function (e.g.,minmax(100px, 1fr)).
- max_height
The maximum height of the
value_box()or the showcase area when used in ashowcase_layout_*()function. Can be any valid CSS unit (e.g.,max_height="200px").- max_height_full_screen
A proportion (i.e., a number between 0 and 1) or any valid CSS unit defining the showcase
max_heightin a full screen card.
See also
value_box() has a showcase_layout argument where one can use the
various showcase_*() functions.
Other Components:
accordion(),
card(),
popover(),
tooltip(),
value_box()
