Add an image.

bulmaFigure(src, size = NULL, ratio = NULL, alt = "")

Arguments

src

path to image.

size

set fixed image size, see details.

ratio

set responsive ratio, see details.

alt

image alt.

Details

Valid size:

  • 16 - 16x16

  • 24 - 24x24

  • 32 - 32x32

  • 48 - 48x48

  • 54 - 54x54

  • 96 - 96x96

  • 128 - 128x128

Valid ratio:

  • square or 1by1

  • 1by1

  • 4by3

  • 3by2

  • 16by9

  • 2by1

Author

John Coene, jcoenep@gmail.com

Examples

if(interactive()){
library(shiny)

shinyApp(
  ui = bulmaPage(
   bulmaTitle("Hello Bulma"),
   bulmaFigure("path/to/image")
  ),
  server = function(input, output) {}
)
}