Skip to contents

Creates a Bootstrap 5 badge element with specified text, color, and optional tooltip. Used for status indicators, verification states, and labels.

Usage

status_badge(text, status = "primary", title = NULL)

Arguments

text

Character scalar. Badge text to display.

status

Character scalar. Bootstrap status color (default: "primary"). See status_class() for supported values.

title

Character scalar (optional). Tooltip text shown on hover.

Value

A shiny.tag span element with Bootstrap badge styling.

Examples

if (FALSE) { # \dontrun{
status_badge("Verified", status = "success")
status_badge("Not Verified", status = "danger")
status_badge("Processing", status = "warning", title = "Artwork is being processed")
} # }