App Badge
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.
container Color
Optional background color override.
content Color
Optional color for the text and icon.