Description Usage Arguments Author(s) Examples
Create horizontal layout sections with different background colors and styles
1 2 |
... |
Slot for UIkitSectionItem. |
title |
Section title. |
style |
Section style: "default", "muted", "primary", "secondary". |
preserve |
Whether to preserve the color of UI elements inside the section. TRUE by default. |
size |
Section size: "xsmall", "small", "large", "xlarge" or NULL (default). |
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 | if(interactive()){
library(shiny)
shiny::shinyApp(
ui = UIkitPage(
title = "My UIkit application",
UIkitSection(
size = "small",
title = "Section Primary with cards",
style = "primary",
UIkitGrid(
child_width = "expand",
UIkitSectionItem(
UIkitCard(
width = NULL,
height = "medium",
title = "My card",
hover = TRUE,
horizontal = FALSE,
header = "This is the header",
body = "This is the body",
footer = "This is the footer"
)
),
UIkitSectionItem(
UIkitCard(
width = NULL,
height = "medium",
title = "My card",
hover = TRUE,
horizontal = FALSE,
header = "This is the header",
body = "This is the body",
footer = "This is the footer"
)
)
)
)
),
server = function(input, output) {}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.