Skip to contents

This function generates a standard box for UI elements in Shiny applications. It includes commonly used parameters, making it convenient to create consistent box structures without repeatedly specifying the same inputs.

Usage

shiny_box_common(title = NA, object_in_box = NA, collapsed = FALSE)

Arguments

title

The title of the box (default is NA).

object_in_box

The UI elements to be placed inside the box (default is NA).

collapsed

Logical indicating whether the box is initially collapsed (default is FALSE).

Value

A standardized Shiny box with specified parameters.

See also

Examples

if (FALSE) { # \dontrun{
  # Create a standard box with a title and UI elements
  shiny_box_common(title = "Example Box", object_in_box = fluidRow(plotOutput("plot")))
} # }