Skip to contents

Add a status badge

Usage

add_badge(content, text, color = "primary", tabgroup = NULL, show_when = NULL)

Arguments

content

Content collection object

text

Badge text

color

Badge color (success, warning, danger, info, primary, secondary)

tabgroup

Optional tabgroup for organizing content (character vector for nested tabs)

show_when

One-sided formula controlling conditional display based on input values.