https://github.com/johncoene/reactslider
  
  
    WIP reactslider for Shiny 
    https://github.com/johncoene/reactslider
  
r rstats
        Last synced: 7 months ago 
        JSON representation
    
WIP reactslider for Shiny
- Host: GitHub
- URL: https://github.com/johncoene/reactslider
- Owner: JohnCoene
- Created: 2019-11-24T17:46:25.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-02T21:40:24.000Z (about 2 years ago)
- Last Synced: 2025-04-12T00:42:45.150Z (7 months ago)
- Topics: r, rstats
- Language: R
- Size: 2.45 MB
- Stars: 15
- Watchers: 4
- Forks: 0
- Open Issues: 2
- 
            Metadata Files:
            - Readme: README.md
 
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)
```
