Description Usage Arguments Author(s) Examples
Set up the element width.
1 | UIkitWidth(..., ratio = "1-2")
|
... |
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". |
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 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) {}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.