Skip to contents

Quartz loves mui

A good shiny dashboard makes its best impact when powered by an elegant ui solution. Shiny.mui is a port of the beautiful Material-UI react library into shiny r. ## Installation

remotes::install_github("quartzsoftwarellc/shiny.mui")

Usage

All components in the mui library are available in this package. And can be used in accordance with their documentation.

library(shiny.mui)
library(shiny)

runApp(shinyApp(ui = Alert(severity = "info", "This is an Alert"), server = \(...){}))

Additionally, shiny input bindings have been added to all components with the “.shinyInput” suffix.

library(shiny.mui)
library(shiny)

if (interactive()) {
  shinyApp(
    ui = div(
      TextField.shinyInput("text", fullWidth = T, value = "go", variant="standard", multiline = T),
      textOutput("textValue")
    ),
    server = function(input, output) {
      output$textValue <- renderText({
        sprintf("Value: %s", input$text)
      })
    }
  )
}

Acknowledgements