UIkitWidth: Create an UIkit width

Description Usage Arguments Author(s) Examples

View source: R/UIkitWidth.R

Description

Set up the element width.

Usage

1
UIkitWidth(..., ratio = "1-2")

Arguments

...

Any UI element such as card.

ratio

By default, the width is set to 1 half or the page, namely "1-2". Could be set to "1-3", ... until "1-6".

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
23
24
25
26
27
if(interactive()){
library(shiny)

shiny::shinyApp(
 ui = UIkitPage(
   title = "My UIkit application",
   UIkitContainer(
    UIkitWidth(
     ratio = "1-2",
      UIkitCard(
       title = "My card",
       badge = "test",
       hover = TRUE,
       horizontal = TRUE,
       UIkitCardMedia(
         src = "https://getuikit.com/docs/images/light.jpg",
         horizontal = TRUE, 
         position = "left"
       ),
       body = "The card width is 1 quarter of the full page width"
      )
     )
   )
 ),
 server = function(input, output) {}
 )
}

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