Description Usage Arguments Note Author(s) Examples
Create a fully responsive, fluid and nestable grid layout
1 |
... |
Slot for an UIkitGridElement. |
gutter |
Grid gutter (space bewteen elements): "small", "medium", "large" or "collapse". |
divider |
Whether to separate grid elements with a vertical divider. FALSE by default. |
child_width |
Set an automatic width for all UIkitGridElement. From "1-2" to "1-6" as well as "auto" and "expand" |
Do not forget to wrap UI element in a UIkitGridElement before putting them in a grid layout (see example)!
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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | if(interactive()){
library(shiny)
shiny::shinyApp(
ui = UIkitPage(
title = "My UIkit application",
UIkitGrid(
child_width = "expand",
gutter = "small",
UIkitGridElement(
UIkitCard(
width = NULL,
title = "My card",
badge = "test",
hover = TRUE,
horizontal = FALSE,
UIkitCardMedia(
src = "https://getuikit.com/docs/images/light.jpg",
horizontal = TRUE,
position = "left"
),
body = "This is the body"
)
),
UIkitGridElement(
UIkitCard(
width = NULL,
title = "My card",
badge = "test",
hover = TRUE,
horizontal = FALSE,
UIkitCardMedia(
src = "https://getuikit.com/docs/images/light.jpg",
horizontal = TRUE,
position = "left"
),
body = "This is the body"
)
),
UIkitGridElement(
UIkitCard(
width = NULL,
title = "My card",
badge = "test",
hover = TRUE,
horizontal = FALSE,
UIkitCardMedia(
src = "https://getuikit.com/docs/images/light.jpg",
horizontal = TRUE,
position = "left"
),
body = "This is the body"
)
)
)
),
server = function(input, output) {}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.