Add masonry-like tiles.
bulmaTileAncestor(...)
bulmaTileParent(..., vertical = FALSE, width = NULL)
bulmaTileChild(
...,
title = "",
subtitle = "",
color = NULL,
type = "notification"
)
any element.
set to TRUE
if you want to stack tiles vertically.
define width of tile.
tile title and subtitle.
color of tile.
type of tile: notification or box.
if(interactive()){
library(shiny)
shinyApp(
ui = bulmaPage(
bulmaTileAncestor(
bulmaTileParent(
vertical = TRUE,
bulmaTileChild(
bulmaTitle("Tile 1"),
tags$p("some graph"),
color = "primary"
),
bulmaTileChild(
bulmaTitle("Tile 2"),
plotOutput("graph")
)
),
bulmaTileParent(
bulmaTileChild(
bulmaTitle("Tile 3"),
tags$p("some other graph")
),
bulmaTileChild(
bulmaTitle("Tile 5"),
tags$p("some other graph")
),
bulmaTileChild(
bulmaTitle("Tile 6"),
tags$p("some other graph")
)
)
)
),
server = function(input, output) {
output$graph <- renderPlot({
plot(x = runif(20, 5, 10), y = runif(20, 10, 12))
})
}
)
}