f7Margin adds a margin to the given tag.

f7Margin(tag, side = NULL)

Arguments

tag

Tag to apply the margin.

side

margin side: "left", "right", "top", "bottom", "vertical" (top and bottom), "horizontal" (left and right). Leave NULL to apply on all sides.

Author

David Granjon, dgranjon@ymail.com

Examples

if(interactive()){ library(shiny) library(shinyMobile) cardTag <- f7Card( title = "Card header", "This is a simple card with plain text, but cards can also contain their own header, footer, list view, image, or any other element.", footer = tagList( f7Button(color = "blue", label = "My button", href = "https://www.google.com"), f7Badge("Badge", color = "green") ) ) shinyApp( ui = f7Page( title = "Margins", f7SingleLayout( navbar = f7Navbar(title = "f7Margin"), f7Margin(cardTag), cardTag ) ), server = function(input, output) {} ) }