/shinyReactWidgets

React widgets for Shiny apps

Primary LanguageROtherNOASSERTION

shinyReactWidgets

ReactR Widgets for Shiny apps

Installation

You can install from GitHub:

# you need branch 'input-binding' from ReactR
remotes::install_github("react-R/reactR@input-binding")

remotes::install_github("pvictor/shinyReactWidgets")

react-select

Widget for react-select

library(shiny)
library(shinyReactWidgets)

ui <- fluidPage(
  tags$h1("react-select example"),

  select_input(
    inputId = "select",
    choices = month.name,
    multi = FALSE
  ),

  verbatimTextOutput("res")
)

server <- function(input, output, session) {

  output$res <- renderPrint({
    input$select
  })

}

shinyApp(ui, server)