Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/johncoene/reactslider

WIP reactslider for Shiny
https://github.com/johncoene/reactslider

r rstats

Last synced: 25 days ago
JSON representation

WIP reactslider for Shiny

Awesome Lists containing this project

README

        

# reactslider

Such a slider would be great for Shiny, it seems however that [react-slider-kit](https://github.com/M-Izadmehr/react-slider-kit) might not be it.

:warning: This is a work in progress.

``` r
# install.packages("remotes")
remotes::install_github("JohnCoene/reactslider")
```

## Example

``` r
library(shiny)
library(reactslider)

x <- round(rnorm(200, 50, 5))

ui <- fluidPage(
reactsliderInput("slider", data = x),
verbatimTextOutput("text")
)

server <- function(input, output) {
output$text <- renderPrint({
input$slider
})
}

shinyApp(ui, server)
```

![](./man/firgures/../figures/reactslider.gif)