| ThemeProvider | R Documentation |
Custom ThemeProvider built on top of MUI's 'ThemeProvider'. See 'js/src/ThemeProvider.jsx'. Pass a 'theme' list (as you would pass a JS object to MUI's 'createTheme()') plus any children to render under that theme. See <https://mui.com/material-ui/customization/theming/> for the upstream documentation.
ThemeProvider(...)
... |
Named arguments forwarded as React props (notably 'theme', a list mirroring MUI's 'createTheme()' options), plus the children to render under the theme. |
Object with 'shiny.tag' class suitable for use in the UI of a Shiny app.
library(shiny)
library(muiMaterial)
theme <- list(palette = list(mode = "dark", primary = list(main = "#90caf9")))
ui <- muiMaterialPage(
ThemeProvider(
theme = theme,
CssBaseline(),
Button("Themed button", variant = "contained")
)
)
shinyApp(ui, function(input, output, session) {})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.