UIkit radio for Shiny

ukRadioInput(inputId, label = NULL, choices = NULL, selected = NULL)

Arguments

inputId

character. The input identifider used to access the value

label

character. Radio label

choices

character. Named or unnamed vector of choices.

selected

character. Selected radio input

Examples

# NOT RUN {
library(shiny)

shinyApp(
  ui = ukPage(
   tags$h1("Hello UIkit"),
   ukRadioInput("select", "Choose a col", c("Miles per galon" = "mpg", "Rear axle ratio" = "drat"), selected = "mpg"),
   verbatimTextOutput("selected")
  ),
  server = function(input, output) {
    output$selected <- renderText({
      input$select
    })
  }
)
# }