tiles: Add tiles

bulmaTileAncestorR Documentation

Add tiles

Description

Add masonry-like tiles.

Usage

bulmaTileAncestor(...)

bulmaTileParent(..., vertical = FALSE, width = NULL)

bulmaTileChild(
  ...,
  title = "",
  subtitle = "",
  color = NULL,
  type = "notification"
)

Arguments

...

any element.

vertical

set to TRUE if you want to stack tiles vertically.

width

define width of tile.

title, subtitle

tile title and subtitle.

color

color of tile.

type

type of tile: notification or box.

Author(s)

John Coene, jcoenep@gmail.com

Examples

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))
    })
  }
)
}


JohnCoene/shinybulma documentation built on July 10, 2024, 1:41 a.m.