Badge
class Badge(count: Int? = null, status: OudsBadgeStatus = OudsBadgeDefaults.Status, size: OudsBadgeSize = OudsBadgeDefaults.Size, enabled: Boolean = true) : OudsListItemBadge, OudsSmallListItemTrailing
A badge as a small list item trailing content. Use a Badge to communicate a compact status or notification associated with the item. A badge should contain secondary information and must not replace the primary label or description.
Parameters
count
The number displayed in the badge. Minimum and maximum values are 0 and 99 respectively. Values greater than 99 are displayed as "+99". If null, no number will be displayed in the badge.
status
The status of this badge. The background color of the badge and the number color are based on this status.
size
The size of this badge. The number is not displayed when size is OudsBadgeSize.ExtraSmall or OudsBadgeSize.Small.
enabled
Controls the enabled appearance of the badge.
See also
Constructors
Link copied to clipboard
constructor(count: Int? = null, status: OudsBadgeStatus = OudsBadgeDefaults.Status, size: OudsBadgeSize = OudsBadgeDefaults.Size, enabled: Boolean = true)