shinymaterial (version 0.5.1)

material_tabs: Place UI content within a tab

Description

Use this function to create tabs in your application.

Usage

material_tabs(tabs, color = NULL)

Arguments

tabs

Named vector. The tab display names and corresponding tab ids.

color

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

Examples

Run this code
# NOT RUN {
material_tabs(
  tabs = c(
    "Example Tab 1" = "example_tab_1",
    "Example Tab 2" = "example_tab_2"
  ),
  color = "deep-purple"
)
# }

Run the code above in your browser using DataCamp Workspace