lcarsBracket | R Documentation |
A top and bottom bracket pair element used to visually group contents.
lcarsBracket(
...,
color = "golden-tanoi",
background_color = "#000000",
hollow = TRUE,
width = "100%"
)
... |
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 |
logical, use a hollow bracket. The cutout section has
|
width |
a valid CSS unit. |
an HTML widget
## 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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.