shinymaterial (version 1.2.0)

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. Must be valid css color.

See Also

material_tab_content

Examples

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

Run the code above in your browser using DataLab