inst/examples/Grid.R

library(muiMaterial)

ui_Grid <- muiMaterialPage(
  CssBaseline(),
  Grid(
    container = TRUE,
    spacing = 2,
    Grid(
      size = list(xs = 12, md = 8),
      muiMaterial::Box(
        bgcolor = "primary.main",
        sx = list(textAlign = 'center'),
        "Box 1"
      )
    ),
    Grid(
      size = list(xs = 12, md = 4),
      muiMaterial::Box(
        bgcolor = "secondary.main",
        sx = list(textAlign = 'center'),
        "Box 2"
      )
    )
  )
)

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

if (interactive()) {
  shinyApp(ui = ui_Grid, server = server_Grid)
}

Try the muiMaterial package in your browser

Any scripts or data that you put into this service are public.

muiMaterial documentation built on July 4, 2026, 1:06 a.m.