CRAN status R-CMD-check CRAN downloads LinkedIn

muiMaterial

muiMaterial brings MUI Material UI, the world’s most popular React UI framework, to R and Shiny.

Why muiMaterial?

Most Shiny apps follow the same template: a sidebar on the left, tabs on top, content in the middle. muiMaterial lets you go further. It gives you access to Material UI’s rich component library, so you can build apps and reports that look and feel truly unique.

See a live example: MUI template dashboard.

muiMaterial::muiMaterialExample("mui-template-dashboard")

Quick start

remotes::install_github("lgnbhl/muiMaterial") # v0.2.0 (SOON ON CRAN)
install.packages("muiMaterial") # v0.1.3
library(shiny)
library(muiMaterial)

ui <- muiMaterialPage(
  Box(
    sx = list(p = 2),
    Typography("Hello Material UI!", variant = "h4")
  )
)

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

shinyApp(ui, server)

Explore the Getting Started vignette, or run the showcase:

muiMaterial::muiMaterialExample("showcase")

Resources

Acknowledgements

muiMaterial is built on top of shiny.react, the R package by Appsilon that makes it possible to use React components in Shiny and Quarto.

Contributing

Found a bug or have a feature request? Open an issue. Pull requests are welcome.

Follow Felix Luginbuhl on LinkedIn for updates.

License

This package is released under the MIT License. It bundles a pre-built copy of the Material UI JavaScript library; the third-party copyrights and license texts are summarised in LICENSE.note and preserved in inst/www/muiMaterial/mui-material.js.LICENSE.txt.

Trademark notice

“MUI” and “Material UI” are trademarks of MUI Inc. muiMaterial is an independent, community-maintained R package and is not affiliated with, sponsored by, or endorsed by MUI Inc. The names are used solely to identify the underlying JavaScript library that this package wraps. See MUI’s legal information for the canonical list of MUI’s published policies.