accordionItem: Generate an accordion item

View source: R/accordions.R

accordionItemR Documentation

Generate an accordion item

Description

Embed an accordion item within an accordion

Usage

accordionItem(
  ...,
  title = "A title",
  status = c("default", "primary", "secondary", "info", "success", "danger", "warning"),
  icon = NULL
)

Arguments

...

The elements to include within the body of the particular accordion

title

The title of the accordion item

status

Set the header background using either of "default", "primary", "secondary", "info", "success", "danger", "warning"

icon

Include an icon to the left of the title for the accordion item

Value

A list of properties for an accordion item

Examples

if (interactive()) {
accordionItem(
  title = "Accordion 2",
  icon = shiny::icon("cog"),
  "Auctor neque etiam non."
)
}


nextGenShinyApps documentation built on Sept. 11, 2024, 7:38 p.m.