lcarsBracket {lcars}R Documentation

LCARS bracket element

Description

A top and bottom bracket pair element used to visually group contents.

Usage

lcarsBracket(
  ...,
  color = "golden-tanoi",
  background_color = "#000000",
  hollow = TRUE,
  width = "100%"
)

Arguments

...

div contents.

color

bracket color. Any hex color or a named LCARS color.

background_color

background color. Any hex color or a named LCARS color. Applies when hollow = TRUE.

hollow

logical, use a hollow bracket. The cutout section has background_color.

width

a valid CSS unit.

Value

an HTML widget

Examples

## Only run examples in interactive R sessions
if (interactive()) {

  ui <- lcarsPage(
    fluidRow(
      column(4,
        h4("Hollow bracket"),
        lcarsBracket(
          lcarsRect("Some text.", text_size = 24, height = 40)
        ),
        h4("Solid bracket"),
        lcarsBracket(
          lcarsRect("Some text.", color = "#000000",
                    text_color = "golden-tanoi",
                    text_size = 24, height = 40),
          hollow = FALSE
        )
      )
    )
  )

  server <- function(input, output) {}

  shinyApp(ui, server)
}

[Package lcars version 0.3.8 Index]