Description Usage Arguments Author(s) Examples
Build a Metro tile
1 2 3 4 5 6 7 8 9 10 11 12  | 
... | 
 Any UI element.  | 
title | 
 Tile title.  | 
icon | 
 Tile icon.  | 
url | 
 Tile external link.  | 
size | 
 Tile size. Choose among small, medium, wide or large.  | 
color | 
 Tile color.  | 
selected | 
 Whether the tile starts selected or not. FALSE by default.  | 
cover | 
 Image path or url that will cover the tile.  | 
col_position | 
 When tiles are in a grid and group, give the column position of the current tile.  | 
row_position | 
 When tiles are in a grid and group, give the row position of the current tile.  | 
David Granjon, dgranjon@ymail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23  | if(interactive()){
 library(shiny)
 library(shinyMetroUi)
 shiny::shinyApp(
   ui = metroPage(
    metroTile(
     size = "small",
     color = "red",
     title = "My tile",
     icon = "apps"
    ),
    metroTile(
     size = "small",
     color = "green",
     metroBadge(1, color = "yellow", position = "inline")
    ),
    metroTile(size = "small", color = "blue"),
    metroTile(size = "small", color = "orange")
   ),
   server = function(input, output) {}
 )
}
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.