R/QSwitch.R

Defines functions QSwitch.shinyInput

Documented in QSwitch.shinyInput

#' QSwitch
#'
#' Helper to add labels to shiny.mui switches
#' 
#' @param ... other props to pass to the react component.
#' @param label label to display
#' 
#' @seealso [shiny.mui::Switch()]
#' @export
#' @importFrom shiny.mui Switch.shinyInput FormControlLabel
QSwitch.shinyInput <- function(..., label) {
    FormControlLabel(control = Switch.shinyInput(...), label = label)
}
QuartzSoftwareLLC/shiny.quartz documentation built on Aug. 29, 2023, 9:18 a.m.