View source: R/shiny-checkbox.R
| lcarsCheckbox | R Documentation | 
An LCARS styled toggle button that can be used in place of
shiny::checkboxInput().
lcarsCheckbox(
  inputId,
  label,
  value = FALSE,
  color = "atomic-tangerine",
  background_color = "#000000",
  label_color = "#FFFFFF",
  label_right = FALSE,
  width = NULL
)
inputId | 
 character, the input slot that will be used to access the value.  | 
label | 
 character, display label for the control, or   | 
value | 
 logical, initial value.  | 
color | 
 Check color. Can be any color given in hex format. Named colors must be LCARS colors. See lcarsdata for options.  | 
background_color | 
 background color, as above.  | 
label_color | 
 label text color, as above.  | 
label_right | 
 logical, set to   | 
width | 
 a valid CSS unit.  | 
A checkbox control that can be added to a UI definition
## Only run examples in interactive R sessions
if(interactive()){
  ui <- lcarsPage(
    lcarsCheckbox("somevalue", "Some value", FALSE),
    verbatimTextOutput("value")
  )
  server <- function(input, output) {
    output$value <- renderText({ input$somevalue })
  }
  shinyApp(ui, server)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.