Badge

fun Badge(modifier: Modifier = Modifier, text: String? = null, color: Color = SurfaceColor.Primary, textColor: Color = TextColor.OnPrimary)

DHIS2 Badge) wraps androidx.compose.material3.Badge. Badges are used to convey dynamic information, such as a count or status. A badge can include text, labels, or numbers.

Parameters

text

: the text to be displayed within the component.

textColor

: color for the text.

color

: background color.

modifier

: optional modifier.