AppBadge

fun AppBadge(text: String, type: AppBadgeType, modifier: Modifier = Modifier, icon: ImageVector? = null, containerColor: Color? = null, contentColor: Color? = null)

A unified and flexible Badge component that follows the design system patterns. Internally handles styles based on AppBadgeType.

Parameters

text

The text to display inside the badge.

type

The AppBadgeType to determine the badge's style.

modifier

Modifier to be applied to the badge layout.

icon

Optional icon to display before the text. If type is AppBadgeType.RATING, defaults to Icons.Default.Star.

containerColor

Optional background color override.

contentColor

Optional color for the text and icon.