OudsNavigationBarItemBadge

class OudsNavigationBarItemBadge(val contentDescription: String, val count: Int? = null) : OudsComponentContent<Nothing>

A badge in an OudsNavigationBarItem.

See also

Constructors

Link copied to clipboard
constructor(contentDescription: String, count: Int? = null)

Properties

Link copied to clipboard

Content description of the badge, needed for accessibility support (vocalized by Talkback).

Link copied to clipboard
val count: Int?

Optional number displayed in the badge. If not null, the badge has an OudsBadgeSize.Medium size. Otherwise, it has an OudsBadgeSize.Small size.