shinymaterial (version 0.5.1)

material_page: Create a shinymaterial page

Description

Build a shinymaterial page.

Usage

material_page(..., title = "", nav_bar_fixed = FALSE,
  nav_bar_color = NULL, background_color = "grey lighten-4",
  font_color = NULL, include_fonts = FALSE)

Arguments

...

The UI elements to place in the page.

title

String. The title of the page.

nav_bar_fixed

Boolean. Should the nav bar remain fixed on the screen?

nav_bar_color

Color of the nav bar. Leave blank for the default color. Visit http://materializecss.com/color.html for a list of available colors.

background_color

Page background color. Leave blank for the default color. Visit http://materializecss.com/color.html for a list of available colors.

font_color

String. The title font color. Leave blank for the default color. Visit http://materializecss.com/color.html for a list of available colors. Title color requires using word forms of colors (e.g. "deep-purple"). Also, lighten or darken effects do not work on title colors.

include_fonts

Boolean. Should the material font files be included? (This will place the font sources in a directory 'www', at the same location as the app code.)

Examples

Run this code
# NOT RUN {
material_page(
  title = "Example Title",
  nav_bar_fixed = TRUE,
  nav_bar_color = "red lighten-2",
  background_color = "blue lighten-4",
  shiny::tags$h1("Page Content")
)
# }

Run the code above in your browser using DataCamp Workspace