UIkitCover: Create an UIkit cover

Description Usage Arguments Note Author(s) Examples

View source: R/UIkitCover.R

Description

Expand images, videos or iframes to cover their entire container and place your own content on top.

Usage

1
UIkitCover(src = NULL, type = "img", height = "medium")

Arguments

src

Media source or path.

type

Media type: "image", "video" or "iframe".

height

Cover height: "medium" by default but also "small" or "large".

Note

Prefer iframe movie quality than the video one.

Author(s)

David Granjon, dgranjon@ymail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
if(interactive()){
library(shiny)

shiny::shinyApp(
 ui = UIkitPage(
   title = "My UIkit application",
   UIkitCover(
     src = "https://getuikit.com/docs/images/dark.jpg",
     type = "image"
   ),
   UIkitCover(
     src = "https://quirksmode.org/html5/videos/big_buck_bunny.mp4",
     type = "video"
   ),
   UIkitCover(
     src = "https://www.youtube-nocookie.com/embed/YE7VzlLtp-4",
     type = "iframe"
   )
 ),
 server = function(input, output) {}
 )
}

DivadNojnarg/shinyUIkit documentation built on July 24, 2019, 8:17 a.m.