RoleBadge

fun RoleBadge(text: String, backgroundColor: Color, textColor: Color, modifier: Modifier = Modifier)

A pill-shaped badge used to display a short label, such as a member role.

Provide the colors for the desired style, for example a primary (brand) color pair for an owner badge and a neutral color pair for other roles.

Parameters

text

The label to display inside the badge.

backgroundColor

The badge background color.

textColor

The color of the text.

modifier

The Modifier to be applied to this badge.