Build a Metro tile

metroTile(
  ...,
  title = NULL,
  icon = NULL,
  url = NULL,
  size = c("small", "medium", "wide", "large"),
  color = NULL,
  selected = FALSE,
  cover = NULL,
  col_position = NULL,
  row_position = NULL
)

Arguments

...

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.

Examples

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