CamoBadge
A count ("3") or, with no count, a dot, usually in a CamoBadgedBox on an icon or avatar. Above max it
shows "99+"; a count of 0 (or less) shows nothing. A badge is never focusable: its contentDescription
(default "3 new" / "New") joins its anchor's announcement. Count changes aren't announced; apps announce
the ones that matter.
API
- Kotlin
- Dart
public fun CamoBadge(
modifier: Modifier = Modifier,
count: Int? = null,
max: Int = 99,
tone: Tone? = null,
appearance: Appearance? = null,
contentDescription: String? = null,
)
| Name | Type | Default |
|---|---|---|
modifier | Modifier | Modifier |
count | Int? | null |
max | Int | 99 |
tone | Tone? | null |
appearance | Appearance? | null |
contentDescription | String? | null |
Design notes
Why CamoBadge works this way, its states and its edge cases: contributor docs.