Package-level declarations

Types

Link copied to clipboard

Use badges to provide a visual indicator for various purposes, such as notifications, labels, status updates, and categories.

Link copied to clipboard

Badges have different variants based on their prominence.

Functions

Link copied to clipboard
fun Badge(text: String, modifier: Modifier = Modifier, badgeAppearance: BadgeAppearance = BadgeAppearance.Standard, badgeVariant: BadgeVariant = BadgeVariant.Primary, icon: Painter? = null)

A badge is a non-interactive UI element that visually attracts attention and provides information about a specific item or its status. A badge can be a label by itself, or it can combine both a label and an icon. A badge cannot consist of only an icon.